commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
you may as well use shutdown -h 18:32 to shutdown your machine at 18:32.
There are 4 alternatives - vote for the best!
From the 'disown' man page:
disown prevents the current shell from sending a HUP signal to each of the given jobs when the current shell terminates a login session.
This way, you can specify how many hours in which you want your machine to shut down.
((60 * 4)) will be turned into 240 by bash before being input to the shutdown command, replace the 4 with whatever number of hours you want, let bash do the math.
Benefit is that it doesn't make you keep the terminal open.
If you can do better, submit your command here.
You must be signed in to comment.