mailing output
From: Shawn Bierman (BiermanS_at_METHODISTHEALTH.ORG)
Date: 07/31/03
- Previous message: ARPON Martin TECSIS: "Re: AIX equivalent to HP's 'glance' cmd?"
- Next in thread: John Jolet: "Re: mailing output"
- Maybe reply: John Jolet: "Re: mailing output"
- Maybe reply: Bill Verzal: "Re: mailing output"
- Maybe reply: James Jackson: "Re: mailing output"
- Maybe reply: Black, Brian: "Re: mailing output"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 31 Jul 2003 09:44:36 -0500 To: aix-l@Princeton.EDU
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: ARPON Martin TECSIS: "Re: AIX equivalent to HP's 'glance' cmd?"
- Next in thread: John Jolet: "Re: mailing output"
- Maybe reply: John Jolet: "Re: mailing output"
- Maybe reply: Bill Verzal: "Re: mailing output"
- Maybe reply: James Jackson: "Re: mailing output"
- Maybe reply: Black, Brian: "Re: mailing output"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|