Auto shutdown

Discussion of the HandBrake command line interface (CLI)
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
dridzz
Posts: 1
Joined: Sun Jan 04, 2009 4:42 am

Auto shutdown

Post by dridzz » Sun Jan 04, 2009 4:45 am

Is there a way to auto shutdown the computer after finishing the encoding on the CLI ?

User avatar
JohnAStebbins
HandBrake Team
Posts: 5409
Joined: Sat Feb 09, 2008 7:21 pm

Re: Auto shutdown

Post by JohnAStebbins » Sun Jan 04, 2009 5:25 pm

Well, that would depend on your OS. On linux,

Code: Select all

HandBrakeCLI <yadda> <yadda> <yadda> ; sudo shutdown -h now
should do the trick.

jjwatmyself
Posts: 14
Joined: Thu Dec 18, 2008 5:27 pm

Re: Auto shutdown

Post by jjwatmyself » Tue Jan 06, 2009 4:57 pm

I believe that you can control this in the GUI. On Windows my computer will shutdown automatically using CLI. If you go into the GUI and click Tools, Options, there is a drop called 'When Done'. I use 'Quit Handbrake' and 'Shutdown' depending on my desited behaviour. The default option is 'Do Nothing' which for me was a problem originally as when CLI had completed, it would not return to the prompt. Upon hitting enter it would return to the prompt. From the testing I have done, after making this change in the GUI, CLI inherits this setting. Any other readers, please feel free to correct me if my statements are not accurate. Also, depending on your OS, there are many ways to shutdown from a script. Vista has the 'shutdown' command as do all flavors of UNIX/Linux.

rainbow2009
Posts: 1
Joined: Tue May 05, 2009 2:40 am

Re: Auto shutdown

Post by rainbow2009 » Tue May 05, 2009 2:46 am

On Windows my computer will shutdown automatically using CLI. If you go into the GUI and click Tools, Options, there is a drop called 'When Done'. I use 'Quit Handbrake' and 'Shutdown' depending on my desited behaviour
This is new to me, but brilliant idea. I'll try it :D :lol:
pret auto

Post Reply