* RE: Reboot incrontab
@ 2001-08-07 13:35 M. Osten
0 siblings, 0 replies; 5+ messages in thread
From: M. Osten @ 2001-08-07 13:35 UTC (permalink / raw)
To: axp-list
> If he's using the system wide crontab (/etc/crontab or files in
/etc/cron.d)
> then the root is needed. This crontab(s) have an additional user field
so the
> syntax is correct.
>
> But putting it in roots crontab would work (use crontab -e and enter
the line
> without "root".)
>
Your right...I never use the system wide.
. ---
|o_o |
|:_/ | Michael Osten
// \ \ mosten@reefedge.com
(| | ) Reefedge Inc.
/'\_ _/`\
\___)=(___/
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Reboot incrontab
@ 2001-08-07 11:59 M. Osten
2001-08-07 13:06 ` Gregor Maier
0 siblings, 1 reply; 5+ messages in thread
From: M. Osten @ 2001-08-07 11:59 UTC (permalink / raw)
To: axp-list, axp-list
> >
> > 0 7 * * * root /backup/reboot.sh >/backup/reboot.log
You do not need "root" before the script. Your box is seeing that, not
understanding it, and ignoring the rest of the line. Just make sure
that your putting it in root's crontab.
. ---
|o_o |
|:_/ | Michael Osten
// \ \ mosten@reefedge.com
(| | ) Reefedge Inc.
/'\_ _/`\
\___)=(___/
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Reboot incrontab
2001-08-07 11:59 M. Osten
@ 2001-08-07 13:06 ` Gregor Maier
0 siblings, 0 replies; 5+ messages in thread
From: Gregor Maier @ 2001-08-07 13:06 UTC (permalink / raw)
To: axp-list
On 07-Aug-2001 M. Osten wrote:
>
>
>
>> >
>> > 0 7 * * * root /backup/reboot.sh >/backup/reboot.log
>
> You do not need "root" before the script. Your box is seeing that, not
> understanding it, and ignoring the rest of the line. Just make sure
> that your putting it in root's crontab.
If he's using the system wide crontab (/etc/crontab or files in /etc/cron.d)
then the root is needed. This crontab(s) have an additional user field so the
syntax is correct.
But putting it in roots crontab would work (use crontab -e and enter the line
without "root".)
Gregor
----------------------------------
E-Mail: Gregor Maier <gregor.maier@newlogic.com>
Date: 07-Aug-2001
Time: 15:04:09
----------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Reboot incrontab
@ 2001-08-07 9:12 Peter Bech
2001-08-07 9:23 ` Gregor Maier
0 siblings, 1 reply; 5+ messages in thread
From: Peter Bech @ 2001-08-07 9:12 UTC (permalink / raw)
To: axp-list
[-- Attachment #1: Body --]
[-- Type: text/plain, Size: 780 bytes --]
Hi,
I'm trying to do a reboot in crontab at a specific time. Nothing happens, not
even an entry in /var/log/cron, nor any other messages, nor mail to root nor
nothing. It's simply ignored.
Allso tried to lure cron and specifiy a shell script doing. Still complete
ignoring.
Is cron testing for rebooting? If yes, what the to do if you want it?
Heres is the crontab line:
0 7 * * * root /backup/reboot.sh >/backup/reboot.log
Rgds
Peter Bech
Informi A/S
------------------------------------------------------------
Open Systems Hardware and Software Consultants
Applix - Linux - Unix - OpenVMS - Alpha Systems
Phone (+45): 4593 7666 Fax: 4593 6335 Mob: 4087 7601
Web: www.informi.com (Private: www.efk87.dk)
------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Reboot incrontab
2001-08-07 9:12 Peter Bech
@ 2001-08-07 9:23 ` Gregor Maier
0 siblings, 0 replies; 5+ messages in thread
From: Gregor Maier @ 2001-08-07 9:23 UTC (permalink / raw)
To: axp-list
On 07-Aug-2001 Peter Bech wrote:
> Hi,
>
> I'm trying to do a reboot in crontab at a specific time. Nothing happens, not
> even an entry in /var/log/cron, nor any other messages, nor mail to root nor
> nothing. It's simply ignored.
>
> Allso tried to lure cron and specifiy a shell script doing. Still complete
> ignoring.
>
> Is cron testing for rebooting? If yes, what the to do if you want it?
>
> Heres is the crontab line:
>
> 0 7 * * * root /backup/reboot.sh >/backup/reboot.log
>
Are you sure that crond is running?
Is this your /etc/crontab file or did you use the crontab -e command (in which
case you can't add the user field)
Maybe you must add the PATH to the shutdown programm in your crontab and/or the
shell in which.
Gregor
----------------------------------
E-Mail: Gregor Maier <gregor.maier@newlogic.com>
Date: 07-Aug-2001
Time: 11:14:30
----------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-08-07 13:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-07 13:35 Reboot incrontab M. Osten
-- strict thread matches above, loose matches on Subject: below --
2001-08-07 11:59 M. Osten
2001-08-07 13:06 ` Gregor Maier
2001-08-07 9:12 Peter Bech
2001-08-07 9:23 ` Gregor Maier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox