Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I upload youtube videos over night using a computer running Ubuntu 11.10 as it really eats my bandwidth. But it's normally done when I'm not around, so it wastes quite a bit of energy leaving it running. Is there any way for me to make it shut down after it's finished?

share|improve this question

Instead of using a browser, you can have a look at uploading via a script - you can then create another script which invokes the Youtube Uploader script and then calls the

sudo shutdown -h now


share|improve this answer
You should rather run the whole script as root. If you place a sudo command in the script, it will ask you probably for your password after uploading the video. – lumbric Feb 21 '12 at 14:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.