Re: crontab ?
Timo wrote:
> why my crontab not / works like
> crontab -e 00 21 * * * /sbin/ifdown eth0
> works fine
You mean you run "crontab -e", and then when it starts its editor
(vi by default) you enter "00 21 * * * /sbin/ifdown eth0" then save
it? Yes, that should work. But why do you want this to be in your
own crontab, not /etc/crontab (or as /etc/cron.d/eth0down)?
> But when I try start with file
> crontab Eth0Dwn
> starts job, but nothing else happend.
This is a strange way to want to set a crontab... "man crontab"
seems to say it'll work, but the file might need to be executable or
something.
> Eth0Dwn
> 00 21 * * * /sbin/ifdown eth0
I presume you mean that the file "Eth0Dwn" contains that line.
What do you see when you "crontab -l"?
Why do you want to do this anyway? Isn't it simpler to edit the
crontab directly with "crontab -e"?
--
Justin B Rye - writing from but not for Datacash Ltd
Reply to: