macos script

hobbes hobbes444 at
Tue Nov 3 16:30:43 UTC 2009

So you want me to add "/sbin" to my PATH variable from within the script?


for example?

On Tue, Nov 3, 2009 at 17:10, Simon Hobson <dhcp1 at> wrote:
> hobbes wrote:
>> Well, my PATH variable in bash in correct.
> When/how did you check that - by typing "echo $PATH" in a shell ? It's a
> common problem that scripts run fine when you run them by hand (using an
> interactive shell with one environment), but then doesn't work when run from
> cron (or I guess in this case dhclient) with a totally different
> environment. PATH is the a common issue here - cron (for example) uses a
> much smaller PATH setting than interactive shells.
> It's one of those things that everyone does, and then they remember how much
> it hurt and try to avoid being bitten by it again :-/
> --
> Simon Hobson
> Visit for books by acclaimed
> author Gladys Hobson. Novels - poetry - short stories - ideal as
> Christmas stocking fillers. Some available as e-books.
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at

More information about the dhcp-users mailing list