![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Profile scripts versus rc scripts.... | rookie22 | UNIX for Dummies Questions & Answers | 1 | 09-17-2008 10:31 AM |
| mailx | pradeep_desh | Shell Programming and Scripting | 2 | 06-06-2006 06:14 AM |
| mailx error message : mailx: NUL changed to @ | BG_JrAdmin | UNIX for Dummies Questions & Answers | 2 | 12-01-2005 10:27 AM |
| mailx to to Dl | sm321 | Shell Programming and Scripting | 1 | 07-16-2004 09:21 PM |
| Mailx | skammer | Shell Programming and Scripting | 1 | 11-05-2002 02:53 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Guys
if i wanna send a mail ,i just type "mailx -s "test" <ak@abc.com> without 'CTRL+d' interrupt,mail won be sent. If i wish to achive this in a script,how do i handle the interrupt? Regards Abhi |
|
||||
|
What you can do in a script is as below:
======================================= mailx -s "test" whoever@wherever.com <<-EOF hello EOF ======================================= You can use any word for "EOF" in the above example but it makes most sense as "End Of File/Input" is what ctrl-D does. Make sure there is no indent before "EOF" |
|
||||
|
thanks guys.
If mailx is receiving input from say,'if' loop or 'cat' command,its sure going to end ,without a need of EOF signal. I have two enviroments.On both envs,mailx is under 'if' loop. On one env,'if' gets executed ,mail is sent ,script ends but on other env its stuck at mailx command.Why so? Does mailx version make a diffrence? Regards Abhi |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|