![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sendmail "root... User address required." error | csgonan | SUN Solaris | 10 | 04-03-2008 09:57 AM |
| Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" | Lokesha | UNIX for Dummies Questions & Answers | 4 | 12-20-2007 01:52 AM |
| How to change "From" in mailx | R00tSc0rpi0n | UNIX for Advanced & Expert Users | 5 | 09-08-2006 12:47 AM |
| chmod - "future" changes | gmclean2006 | UNIX for Dummies Questions & Answers | 8 | 06-15-2006 11:28 AM |
| How can I deny messaging which use "wall" to send message out? | wilsonchan1000 | UNIX for Dummies Questions & Answers | 7 | 07-17-2002 10:06 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Using mailx to send in the future? Also change "from" address?
Hey, I've got a script using mailx to send an email to the user, but i'd like it if I could have it send the email sometime in the future, not right away. And by future, i mean like 1 minute in the future.
And I don't want it to halt the script in anyway. Perhaps there's a way to have it spawn a process or something that runs for a minute before sending the mail or something? Also, is there a way to specify the "from" address using mailx? I would rather have a different reply-to address than the system account. |
|
||||
|
How about
Code:
futureMail()
{
sleep 60
mailx .....
}
futureMail &
Last edited by porter; 08-09-2007 at 05:31 PM.. |
|
||||
|
Thanks! Exactly what i was looking for.
|
|
||||
|
If you have your "atd" running, you can use this format:
Code:
echo "mailx -s 'subject' e@mail.com << /path/to/file" | at 15:03 |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|