Re: mailing output
From: John Jolet (john.jolet_at_FXFN.COM)
Date: 07/31/03
- Previous message: Barry Finkel: "Re: timed and a VM time server"
- Maybe in reply to: Shawn Bierman: "mailing output"
- Next in thread: Bill Verzal: "Re: mailing output"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 31 Jul 2003 09:58:30 -0500 To: aix-l@Princeton.EDU
ls -l |mail -s "subject line" root should work.....does it work from the command line?
-----Original Message-----
From: Shawn Bierman [mailto:BiermanS@METHODISTHEALTH.ORG]
Sent: Thursday, July 31, 2003 9:45 AM
To: aix-l@Princeton.EDU
Subject: mailing output
Greetings,
I am having a bit of trouble with a script that should email root the output of a command but also have a subject line.
Currently we just run the command from cron and it gets sent to root's email but with a subject line. So, I thought i would make a script that added the subject.
I was hoping for something as easy as:
mail -s"subject line" root | ls -la
even when I output the command to a file and then try to redirect I get failures.
mail -s"subject line" root < somefile
mail complains of unknow users 'subject' and 'line'.
Is there a simple way?
- Previous message: Barry Finkel: "Re: timed and a VM time server"
- Maybe in reply to: Shawn Bierman: "mailing output"
- Next in thread: Bill Verzal: "Re: mailing output"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: password protection of a file
... >> the trouble is that i want to use the command into a script.
... BTW, I haven't seen a single message from the OP, only the replies. ... (Debian-User) - Re: mailing output
... I am having a bit of trouble with a script that should email root the
... Currently we just run the command from cron and it gets sent to root's ... (AIX-L) - mailing output
... I am having a bit of trouble with a script that should email root the
output of a command but also have a subject line. ... (AIX-L) - Re: usrlogon.cmg hangs
... trouble was occurring: ... output of that command and you may be able
to see an error ... make sure that the script has "echo on" set. ... >> tried
giving this user a new profile? ... (microsoft.public.win2000.termserv.clients) - Re: no macro expansion in optional argument?
... The *entire* argument has to be put into a command. ... trouble. ...
Your script works but I didn't. ... Prev by Date: ... (comp.text.tex)