Linux / UNIX Tech Support Forum
This is a discussion on Suse mailx within the Shell scripting forums, part of the Development/Scripting category; I am trying to use mailx to send a message to root that Scriptx was executed. I cant get it ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I am trying to use mailx to send a message to root that Scriptx was executed.
I cant get it to work. Any suggestions will be appreciated; mailx -u root@localhost "Trying to notify you Scriptx was executed" |
| Sponsored Links | ||
|
|
|
||||
|
Try mail command
Code:
mail -s "Subject" root <<EOF This is my message EOF Code:
grep ^root /etc/aliases Person who should get root's mail is admin@staff.somewhere.com
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SuSe hangs on shutdown | lacloai | Linux software | 6 | 10-13-2008 05:14 AM |
| assignement in suse | signpost | Shell scripting | 0 | 04-17-2008 04:58 PM |
| assignement in suse | signpost | Shell scripting | 0 | 04-17-2008 04:55 PM |
| bash history...suse 10.1 | grogf | Linux software | 4 | 10-30-2007 04:42 PM |
| suse 9 firewall | click007 | Getting started tutorials | 5 | 08-15-2007 11:29 PM |