["Followup-To:" header set to comp.os.linux.misc.]
On 2005-01-06, Eric Peterson <> wrote:
> Sorry for the cross-posting, but I'm not sure if this question lands on the
> perl side of things, or the linux side...
>
> I have a perl script that runs once a minute to check various things. Under
> one condition I want it to reboot the system. The command line equivalent
> of "shutdown -r 10". I can get the script to work perfectly if I manually
> run it from the command-line, "./myshutdownscript.pl". But when it runs
> automatically from cron, the shutdown command seems to be ignored, though
> all other output indicates the perl script is running fine.
I'd try posting to comp.os.linux.misc instead, and also would post a
short script which replicates the problem there. (Sinan's correct, in
that if the script runs from the command line, it's probably not a Perl
problem.)
--keith
--
kkeller-
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom