Search Results

Search: Posts Made By: rovf
2,158
Posted By rovf
Maybe you were just too quick when looking. After...
Maybe you were just too quick when looking. After I posted, I immediately noticed an error in my script and edited again. This took perhaps one minute. If you have managed to read my post during this...
2,158
Posted By rovf
The part inside the then clause in your script is...
The part inside the then clause in your script is different from what I've posted. That's why it doesn't work.
2,158
Posted By rovf
More like this: find .... >$FILE [[ -f...
More like this:


find .... >$FILE
[[ -f saved.txt ]] || touch saved.txt
if ! cmp $FILE saved.txt
then
[[ -s $FILE ]] && mail ... <$FILE
cp $FILE saved.txt
fi
2,158
Posted By rovf
Don't do the exec stuff. Separate your task into...
Don't do the exec stuff. Separate your task into two scripts.

One is calculating the message to be sent by email, but it does not actually send the mail, but writing the information to be sent to...
2,158
Posted By rovf
You could store the output which has been mailed...
You could store the output which has been mailed once in a certain file, and always compare the contents of the new output (which would be mailed) and the old one (using a tool such as cmp), and only...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 09:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy