How to stop a cron job sending email

Cameron Hutchison lists at xdna.net
Fri Oct 31 20:17:05 UTC 2008


Johann Spies <jspies at sun.ac.za> writes:

>On Fri, Oct 31, 2008 at 10:58:59AM +0000, Chris Rees wrote:

>> > The actual redirect should be 2>&1

>>From 'man bash' 
>[...]

The original script started with #!/bin/sh, not #!/bin/bash.

It's a common problem to use bashisms in bourne shell scripts. While
/bin/sh has often been a symlink to /bin/bash, this is changing in a
number of distros to get faster boot times. These sort of errors are
going to crop up more often now.





More information about the ubuntu-users mailing list