Find the answer to your Linux question:
Results 1 to 3 of 3
Hi All; could somebody tell me how i could wake up automaticaly my server all days at 5:00 AM and shutdown it at 6:00 PM ? is it possible with ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    12

    wake up my server

    Hi All;

    could somebody tell me how i could wake up automaticaly my server all days at 5:00 AM and shutdown it at 6:00 PM ?
    is it possible with a cron job ? I need to know before try it.

    Regards,

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Unless you have some sort of power on feature on your system it's never going top power on at 5AM. You could simply create to cron entries to up and down the network interface which would remove it from the network. If you really need to power it down you are going to have to have a way of powering it up at 5AM.

    Another option is to get yourself one of those power adapters that you can control from a network connection. You could then setup a cron job on another computer to log into the controller and power down the system and then power it back up at 5AM.

    If you are looking for just something on the system itself I am afraid you are SOL.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Some systems allow you to wake them up with a network message. However, I think that a system that is configured to boot on power-on would be more practical. Use a timer on the power line to turn on the power at 5am, and have cron shut the system down at 6pm. However, I must state for the record that it is actually better for your system to leave it running 24x7. Less stress on the hardware. You can setup cron to enable/disable the network interfaces at the appropriate times if you don't want to allow remote access outside of the specified hours and days of the week.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...