Find the answer to your Linux question:
Results 1 to 2 of 2
Does anyone know of a way to determine how the PC/Server was powered on? I'm interested in writing a startup script that performs a specific action depending on the poweron ...
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    8

    How to determine Power On cause?

    Does anyone know of a way to determine how the PC/Server was powered on?
    I'm interested in writing a startup script that performs a specific action depending on the poweron cause.

    For example:
    If powered on by "wakalarm" perform task X & shutdown.
    If powered on by "power button" perform task Y.

    Is there any way to determine the cause of the power on?
    I'm running Federa 12.

    Thanks

  2. #2
    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
    That's a great question. I'm not sure, but I'd like to know also...
    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
  •  
...