Skip,
Thanks for the link, it helped me immensely.
How would I go about writing a function to call the CreateMail function once the conditions are met?
I've got a worksheet with 3 columns:
A. User Name
B. How many days left until their password expires
C. Date of their password expiration.
I'd like to be able to run a macro which determines if anybody has their password expiring in the next 10 days. So if column B contains a 10 or less, then...
Usually, there's no issue when making a text file executable, but 777 is just asking for problems. For what purpose do you need to open up the directories?
Hi all,
I've got a file that has lines likes this:
2 123456789WWWWW 0501 A B
The primary key to sort on is the 123456789WWWWW and the secondary sort key is the 0501 (year/month).
My current sort command is this:
sort +1n -2 +2n -3 ${file}.stripped > ${file}.sorted
A problem exists though...
Oops! I forgot that I wrote that post a long time ago. Thanks for reminding me PHV.
Thanks also to xmb for the help. I think I can try writing this script now!
Hi all,
I am working on a script that scans several directories looking for a particular file in each and see if the file is older than 30 minutes.
The filename is core.txt in all of the directories.
Currently, I have a script that works about 90% of the time, but lately it's been flaky, and...
OK,
I searched and saw a couple of answers, but they didn't really apply to my script.
Here's a snippet from my script:
#!/bin/ksh
function build_ftp_script {
echo ${@:-} >> $ftp_script
}
function build_transfer_status {
if [[ -a $ftp_script ]] ; then
rm -f $ftp_script
fi...
Anyone know of a quick/easy way to check to see if a file hasn't been modified in the last 30 minutes?
For example, file1.txt hasn't been updated/touched since 10:30am, and file2.txt was last modified/touched at 10:55am, it's now 11:05am, how do I get the script to alert me that file1.txt is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.