nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Suse mailx

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 ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Linux answers from nixCraft.


Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-05-2008, 12:21 AM
Junior Member
User
 
Join Date: Apr 2008
Location: Queens Ny
OS: Suse
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pramkar is on a distinguished road
Default Suse mailx

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"
Reply With Quote
  #2 (permalink)  
Old 02-05-2008, 01:52 AM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default

Try mail command
Code:
mail -s "Subject" root <<EOF
This is my message
EOF
On many systems root mail are forwared to some other account. Following will tell you exact account or email id
Code:
grep ^root /etc/aliases
root: admin@staff.somewhere.com

Person who should get root's mail is admin@staff.somewhere.com
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
SuSe hangs on shutdown lacloai Linux software 6 13-10-2008 05:14 AM
assignement in suse signpost Shell scripting 0 17-04-2008 04:58 PM
assignement in suse signpost Shell scripting 0 17-04-2008 04:55 PM
bash history...suse 10.1 grogf Linux software 4 30-10-2007 04:42 PM
suse 9 firewall click007 Getting started tutorials 5 15-08-2007 11:29 PM


All times are GMT +5.5. The time now is 08:05 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38