Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

poweroff_in

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

poweroff_in

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 10 Jan 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc