Using the shutdown command from a VT other than the console

From: Matthieu Gaillet (mg_at_evercomREMOVEME.be)
Date: 10/11/04


Date: Mon, 11 Oct 2004 13:24:18 +0200


Hello All,

I'm trying to cron a computer restart and I've put the command
"shutdown -y -i6" in the crontab file. I tried that for the crontab of user
root or for the user normally using the machine. Neither of the two are
working : I keep getting the message

# mail
>From LOGIN Thu Oct 14 23:58 GMT 2004

/etc/shutdown: You must be logged onto the console (/dev/console) and be
           using virtual terminal 0 in order to shut the system down.

*************************************************
Cron: The previous message is the standard output
      and standard error of your cron command:

        /etc/shutdown -y -i6

I don't know what to let the shutdown command working from another VT... Has
anyone an idea ?

the uname command returns the following

ucg:2_14/usr/ucg>uname -a
ucg ucg 3.2 2 i386

It is an old Interactive Unix (SunSoft, 1990)

Thanks !

Matt



Relevant Pages

  • Re: Perl Script as a Cron Job
    ... > From the help above i created a new perl code and i was successfull in ... > not executed by cron i have the cron entry as below ... In who's crontab file have you put this entry? ... Is there any any output from the command, ...
    (perl.beginners)
  • Re: newbie qn: shell program to copy files from one directory on the server to a remote windows mach
    ... To automate this you can use cron. ... If you use crontab -e to edit the crontab. ... A line in crontab file like below removes the tmp files from ... Just replace the command in the example above with the ...
    (comp.unix.shell)
  • RE: packaged received but didnt run
    ... first you need to make sure your package is set to run whether someone is ... Run the shutdown command as an admin so it will have command over everything. ... timeout period.If this switch is used, ...
    (microsoft.public.sms.swdist)
  • Re: Shutdown remote server
    ... it will tell you how to remotely shutdown another NT based ... >> How can I do a clean shut down of a remote server with VBScript? ... > PsShutdown.exe in the free PsTools suite (command line) ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.scripting.vbscript)
  • Re: After reboot, cant use admin Terminal Server on SBS 2003
    ... I like is to schedule a reboot an hour out, using the "shutdown" command. ... restart will restore your access. ...
    (microsoft.public.windows.server.sbs)