PoweroffIn

This is a Simple gem to poweroff a linux system after a certain amount of time.

Why?

I like to listen to music before going to sleep. The shutdown command doesn't completly 'shutdown' a laptop and the poweroff command doesn't take a TIME argument.

Installation

Install it yourself as:

$ gem install poweroff_in

Usage

You need to execute the command with sudo since poweroff requires sudo privilege.

You need to specify an amount of time and the 'type of time' minutes or hour. Minutes is the default.

Example usage:

$ sudo poweroff_in 10 minutes


$ sudo poweroff_in 10 


$ sudo poweroff_in 1 hour

Contributing

Feel free to contribute.