My shell script wc's a few files (stands for word count, right?) and uses mailx to put the results in the body of an email. It works perfectly when invoked manually at the command line, however, after setting up the same script in crontab, the body of the resulting email comes out blank.
The script basically ftp's in the files, and then runs the following command...
echo "`wc $filea`
`wc $fileb`
`wc $filec`" | mailx -s "Line counts" xxx@yyy.com
So why does it work manually, but not in crontab... what do I need to look for?
The script basically ftp's in the files, and then runs the following command...
echo "`wc $filea`
`wc $fileb`
`wc $filec`" | mailx -s "Line counts" xxx@yyy.com
So why does it work manually, but not in crontab... what do I need to look for?