[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: crontab hour range 6-midnight

Jochen Spieker wrote:
> Bob Proulx:
> >   # The default vixie-cron PATH is "/usr/bin:/bin", overriding the environment.
> >   PATH = "/home/rwp/bin:/usr/local/bin:/usr/bin:/bin:/usr/games"
> You still can use
> PATH = "~/bin:/usr/local/bin:/usr/bin:/bin:/usr/games"
> if the crontab belongs to the user 'rwp'.

Having a literal '~/' in there works for bash.  But it doesn't work
for /bin/sh linked to dash for example.  On Debian /bin/sh defaults to
being linked to /bin/dash, not bash, these days and in that case using
~/ wouldn't work.

So I guess that if ~ is used in PATH then SHELL should also be set to
bash too.  That combination is fine.  And then of course all of the
other fun bash'isms on the command line would also work.


Thanks for the hint!


Attachment: signature.asc
Description: Digital signature

Reply to: