View Single Post
Posts: 40 | Thanked: 2 times | Joined on Oct 2009 @ Ireland
#6
Ok ... here's my first pass :

echo "Time to shutdown in mins : "
read shutdowntime

sleep $((shutdowntime * 60));

kill $(pidof mediaplayer)

echo "Goodnight";
It works from the command line, just input the time you want the Mediaplayer to run for in minutes.

It's probably overly simplistic ... but it's just nice to play with these things.

Now... wheres my widget hammer
 

The Following 2 Users Say Thank You to joedumper For This Useful Post: