[SunHELP] Emailing cron output

Songonuga Tope Tope.Songonuga at thetube.com
Thu May 1 07:54:26 CDT 2003


Hi gurus

I'm having a little trouble with emailing the output of a shell script from
my Solaris server to my Exchange account, very weird behaviour indeed.  I'm
testing with a shell script that runs 2 commands (df -k, cat
/var/adm/messages):

		$ mailx username at xx.com < /tmp/outputfile.txt (full contents
are emailed)
		$./test.sh > /tmp/outputfile.txt | mailx username at xx.com <
/tmp/outputfile.txt  (only the output of the 1st command are emailed, just
half the contents of the actual outputfile.txt)

Does anyone have any ideas?

Thanks.

Tope 






*******************************************************************
Notice from London Underground Limited and its subsidiaries (LUL)

This e-mail is confidential to the person to whom it is addressed.
Anyone else, please notify the sender and delete immediately, 
do not disclose, use, store or copy the contents in any way.
Views expressed in this message are the individual sender's except
where specifically stated to be the views of LUL.
No contracts may be concluded on behalf of LUL by means of e-mail.

Copyright in this e-mail and attachments belongs to LUL. 
When communicating with anyone within LUL by e-mail you consent
to the monitoring and recording of that correspondence by LUL.

London Underground Limited
Registered Office: 55 Broadway, London SW1H 0BD
Registered in England and Wales no. 1900907
A subsidiary of London Regional Transport
*******************************************************************



More information about the SunHELP mailing list