Timed shutdown in openSUSE: kshutdown April 12, 2007Posted by NAyK in First Impressions, How-To, Linux, OpenSUSE, Reviews, Screenshots, Software, Working with Linux.
I never thought I’d need it, but today I did. I needed a timer (for shutdown) in linux.For some strange reason, I DON’T have a timed shut down automatically installed in the “Shutdown” option in openSUSE, and what I needed was a feature that would allow me to shutdown after a few hours. In my openSUSE I don’t even have the option to restart in an alternative operating system. The screenshot of my shutdown screen is found below.
I was doing some bittorrent downloads during an ISP limited timeframe. I had to finish by 8:00am otherwise it would cost me dearly!
Fact is, because I didn’t know how to do it (I never even did it in Windows or Ubuntu or whatever), I had to figure out from scratch.
I googled for “timed shutdown” and found two main solutions… THAT DIDN’T WORK in openSUSE.
The first solution is for Ubuntu and it is found here. Which offered the “at” command to shutdown programs after a certain time. It looked like this:
echo "killall mplayer" | at 4am
I thought it looked interesting because ultimately I simply needed ktorrent shut-down. So I replaced “mplayer” with “ktorrent” but somehow this whole phrase was not recognised by openSUSE. The error message was as follows:
warning: commands will be executed using /bin/sh job 3 at 2007-04-13 04:00 Can't open /var/run/atd.pid to signal atd. No atd running?
I had no idea what that meant, or whether it would actually shut down “job 3”. I tried again.
The second solution is found here. Which asked me to type a command:
This command gave me an error, saying “bash: shutdown: command not found”
So what worked? I decided to go the software route and found a small software called Kshutdown in YAST. I clicked on the non-Beta one and installed.
The programme asks what I wanted to do (shutdown, restart etc.) and by what time/date. I entered my figure and viola! Fingers crossed… it looks like it is working.
The screenshot looks like this, below.