Hi,
I have a script that runs off the cron and creates a report, carries out a few checks and then sends the info in a email (i'm using mailx).
To exectute the sending from the script all I do is,
cat $reportfile | mailx -s "The Subject"
my.email@work.com
When I test running this script manually (not via the cron) the report appears as the content of the email not as an attachment. This is what I want.
When I run it in the cron the mail arrives with an attachment (this has the report) and the email contains messages about unsupported charecter set not suported by the Internet service.
How can running this from cron (same user) give different results to running from the command line?
HPUX
sh script.
Many thanks,
Neil