Crontab, CronniX and sudo



Hi All,

I'm using CronniX to try to set up a restart of the system on a
schedule (there's a long story as to why I'm not using the Energy Saver
prefs to shutdown/startup). I'm executing:

sudo shutdown -r now

It works fine form the command line but not from the crontab. I think
it's because I need to sudo to get shutdown to work and it's prompting
for a password. So, is there a way to embed the password in the
command? Or another way to somehow get shutdown to run when no logged
in as root?

Or, some other command that I could run from the command line that'll
force a restart of the system? I'm not too picky, I just want it to
reboot on a schedule.

Thanks,

Jeff

.



Relevant Pages

  • 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)
  • Re: Remove just the Shutdown Command
    ... We still need them to have access to restart their system for other reasons. ... Our users would NOT be circumventing the initial shutdown command on the ... Why you want to do that if the user has perm. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Elegant shutdown method
    ... I generally use the command line Shutdown.exe command with ... I also believe there is a shutdown tool in the Psutils (available ... I schedule with the scheduler so I am not sure about the time. ... I simply setup a batch file on the Main ...
    (microsoft.public.windows.server.active_directory)
  • Re: windows not shutting down
    ... Then I have to surmise that the system/motherboard chipset driver is mis-interpreting the the "Shutdown" command as a "Restart" command or other "update" associated caused conflict. ... I have recently needed to install a new hard drive, ...
    (microsoft.public.win2000.windows_update)
  • Re: How to Change the Shutdown Action To Reboot Action in statr me
    ... Start a console session at the remote machine, ... command. ... In the earlier thread I told him that he cannot turn a "shutdown" into a ... "restart", hence his new post. ...
    (microsoft.public.windowsxp.general)