PDA

View Full Version : Shutting down Ubuntu with Wine and uTorrent


thing2b
June 18th, 2008, 04:34 AM
Does anyone one know how I can get the "Shutdown when downloads complete" function working on uTorrent. It seems to shutdown uTorrent but I also would like it to shutdown Ubuntu?

Thanks for any help.

conscious
June 18th, 2008, 04:51 PM
What about the simplest script?
#!/bin/bash
wine /your/path/to/utorrent.exe
shutdown -h now
This will shut down the system as soon as wine exits. Don't forget to make the script executable. The problem is that shutdown requires root privileges to work, but you may use this workaround (http://ubuntuforums.org/showthread.php?t=79508).