Shutdown after playback?
Posted: 22 Jun 2011 15:32
I'm running Debian Testing and VLC 1.1.10. I'm a little new to the whole Linux scene, so you'll have to excuse me if I sound like an idiot at any point.
Is there any way to shut VLC down after playing back a video file?
According to this page:
http://wiki.videolan.org/How_to_shut_do ... uter#Linux
It should be as simple as making a .sh file. However, things got a little more complicated when it turned out the provided script wasn't working and required root.
I changed the script simply to:
... and changed some stuff elsewhere to get the script to work without prompting for a password (the laptop shuts down when I run the script on it's own)... but when I add the script to the VLC playlist and I play it, the laptop doesn't shut down.
Is that Wiki page outdated perhaps? Or am I doing something wrong? Thanks!
Is there any way to shut VLC down after playing back a video file?
According to this page:
http://wiki.videolan.org/How_to_shut_do ... uter#Linux
It should be as simple as making a .sh file. However, things got a little more complicated when it turned out the provided script wasn't working and required root.
I changed the script simply to:
Code: Select all
#! /bin/sh
vlc && /sbin/shutdown -h now
Is that Wiki page outdated perhaps? Or am I doing something wrong? Thanks!