Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Feb 2004 19:10:40 +0100 (CET)
From:      "Julien Gabel" <jpeg@thilelli.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Shell scripting woes.
Message-ID:  <52540.192.168.0.97.1077646240.squirrel@webmail.thilelli.net>
In-Reply-To: <403B9112.1080503@circlesquared.com>
References:  <51804.193.14.163.194.1077641809.squirrel@mail.haas.se> <403B9112.1080503@circlesquared.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52540.192.168.0.97.1077646240.squirrel>