![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| return code of a unix command | ramky79 | Shell Programming and Scripting | 1 | 08-02-2007 12:34 PM |
| Mailx Return Email Command | lisa0703 | Shell Programming and Scripting | 1 | 01-23-2007 04:38 PM |
| Move command return with exit code of 2 | handak9 | UNIX for Advanced & Expert Users | 1 | 08-26-2004 02:40 AM |
| Regex to pick up name from the following including carriage return at end of the line | Shakey21 | Shell Programming and Scripting | 3 | 07-18-2002 05:27 AM |
| mailx in kornshell script passing return code to CA-Unicenter | Connie | UNIX for Advanced & Expert Users | 1 | 04-23-2002 05:45 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 's
Hi All,
Can anyone please let me know the syntax / how to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 'system()' function and '${?}'. I am in a process to send the mail automatically with an attachment to bulk users. I have used 'Mailx' and 'Unencode' commands for the same and those worked fine. Please find below the same. X " ( cat /sastemp/body.txt; uuencode test.xls test.xls ) | mailx -s 'testing' 'abcd.gef@yahoo.com' " Instead using the X command I want to use system() function & ${} to make the above more successful. Thanks in advance. Thanks for your time, Manas |
|||
| Google UNIX.COM |
| Forum Sponsor | ||
|
|