Re: mailing output

From: Black, Brian (BBlack@CCBCMD.EDU)
Date: Thu Jul 31 2003 - 11:06:55 EDT


I had this problem in a rexx script and had to remove the spaces from my
"subject" for a quick fix.

Brian H. Black , Systems Engineer
Community College Of Baltimore County
V-Mail 410-455-4908
E-Mail bblack@ccbcmd.edu
http://www.ccbcmd.edu
"Don't Look where you fell, look where you slipped"

> -----Original Message-----
> From: Shawn Bierman [mailto:BiermanS@METHODISTHEALTH.ORG]
> Sent: Thursday, July 31, 2003 10: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?
>



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:05 EDT