On Wed, 25 Jul 2012 14:25:40 +0100, Darac Marjal wrote: >On Wed, Jul 25, 2012 at 06:13:31AM -0700, Jeff Grossman wrote: >> Since I have upgraded to Squeeze, I get and e-mail with the following >> line in it every morning. Would somebody be able to point me in the >> right direction to figure out what file in cron.daily is giving me >> this error? >> >> >> -su: source: not found > >I imagine that your system shell has been changed to dash (run "ls -l /bin/sh" >to check). Dash is somewhat stricter in its implementation of POSIX than bash >(it's main focus is to be lighter than bash so as to allow quicker booting). >POSIX declares that the "source" command should check the path when given a >filename without path components. Bash relaxes this somewhat by also checking >the current directory. Dash DOESN'T do this. > >That is, assuming somefile.sh is in the current directory, "source >somefile.sh" will work in bash, but not dash. To fix this bashism, use "source >./somefile.sh".
I just did a "grep source *" from the /etc/cron.daily directory to figure out what file is causing me the problems. But, it came back empty. How would I figure out where that source file is to fix it? The e-mail is my daily cron.daily cron job e-mail that is giving me the error. Thanks, Jeff -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/bsm018plvn9tiu7mistfai86u57abv7...@4ax.com