![]() |
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 |
| Sh, Bourne Problem with getting lines in a file | kdyzsa | Shell Programming and Scripting | 1 | 05-08-2008 11:28 PM |
| please give a bourne script to this problem | raj1811 | Shell Programming and Scripting | 1 | 09-30-2006 04:36 PM |
| mail script problem using cgi | unknown2205 | UNIX for Dummies Questions & Answers | 1 | 03-08-2006 06:10 AM |
| bourne script help | Heedunk | Shell Programming and Scripting | 1 | 02-05-2004 08:49 PM |
| simple Bourne problem | pnxi | Shell Programming and Scripting | 5 | 09-09-2003 08:33 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hey there,
Just have a quick question. i've written a program and it needs to send a email to confirm it's completed. now i've done the mail -s "Subject" test@test.com the problem is the program, when run just waits. it doesn't execute the next command unless i press ^D. is there away for it to just send a mail without a body and go on without having to press ^D thanks priest_ridden |
|
|||||
|
That because it's waiting on the body of the message to be included. If it's excluded it expects standard input to provide the content.
Over come it by trying ... mail -s "Everest AU - CPU Monthly Report." \ TEST@TEST.com.au < $xcpudir\data/cpu$CurrYr$PrevMth\.data Hope that helps - and that I've explained it clearly enough. ![]() |
|
||||
|
Ok, I think I get what you're saying.
< $xcpudir\data/cpu$CurrYr$PrevMth\.data if i'm off let me know. the first part is the current dir of the program and the rest just sends date information for the body so the progrm will keep running. hope i understood that right. thanks |
|
||||
|
well i looked at it some more and i figured it out thanks a lot
i just did this and it seems to work out ![]() Code:
mail -s "Subject" test@test.com <usr/home/mail/$USER >/dev/null 2>&1 Last edited by Priest_Ridden; 12-12-2001 at 01:49 AM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|