>> Hello guys! I have two questions about shellscripts:
>> 2) The same backup job - is written as a bash script, and it works
>> perfectly when run by hand, but it won't run as a cron job.

> Are you using a full path in the shebang at the top of the script?
> Such as:
>
> #!/bin/sh
> or
> #!/usr/local/bin/bash

And more generally, is the ${PATH} variable set correctly according
to all the tools/utility used along your script?

-- 
-jg.
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to