On Thu 04 Jan 2007 18:56:26 NZDT +1300, Steve Holdoway wrote:
> On Thu, 04 Jan 2007 13:23:03 +1300
> Volker Kuhlmann <[EMAIL PROTECTED]> wrote:
>
> > > > > PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
> > > >
> > > > This in any case find your shutdown program.
Ooops, .. in any case will find ..
> > > This is incorrect. The system of cron.hourly, etc that runs using
> > > /etc/crontab is totally separate to the *proper*, per user cron system
> > > as set up through the crontab command. The above if from the former,
> > > Roger is using the latter.
> >
> > Yes he is. Which system does not have shutdown in one of the directories
> > in that PATH, where it wouldn't be found? And that PATH is in effect
> > until explicitly modified for per-user cron scripts as well as the
> > /etc/cron.{daily,weekly etc} ones, which are in turn only called by a
> > per-user cron script anyway. PATH is inherited.
> Entries in the per-user crontab are displayed using crontab -l ( +
> whatever other switches you wish ). crontab -l does not display the
> .weekly, etc jobs, whatever user you are logged in as. Also, as you
> stated, it it was coming from /etc/crontab, the PATH is set so it
> *will* find shutdown, and work, bad switches notwithstanding.
Ah yes, you mean the user crontabs in /var/spool/cron/tabs/
which indeed get their paths from someplace else. Their default is
SHELL=/bin/sh
PATH=/usr/bin:/bin
(for non-root at least) and I don't know where it's set.
I always use /etc/cron.d/ for root jobs, it gives me one file per job
and keeps the system config in /etc.
> Also note that there are no weekly, daily entries from crontab -l ( as
> root ).
They're equivalent to /etc/crontab as that's where they're called from
(via some more elaborate script).
> Please post your findings from SuSE so we can see if this is a distro
> specific bug.
No bug I can see, works as intended. SUSE uses vixie cron, RH at least
used to as well.
/etc/crontab:
SHELL=/bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
MAILTO=root
-*/15 * * * * root test -x /usr/lib/cron/run-crons &&
/usr/lib/cron/run-crons >/dev/null 2>&1
I assume /etc/cron.d/* are equivalent to /etc/crontab.
Volker
--
Volker Kuhlmann is list0570 with the domain in header
http://volker.dnsalias.net/ Please do not CC list postings to me.