How to kill VLC when running from the command line?

11,923 views
Skip to first unread message

Peter Tesar

unread,
Feb 26, 2013, 6:48:46 PM2/26/13
to vinux-...@googlegroups.com
Hello,

From the virtual console, I run vlc to play video files: .vob or .avi. I tried killing it with: ctrl+c, ctrl+d and ctrl+z, with no effect.

The only way to stop the playing is to reboot.

Is there a hot key I could use to get back to the console? Thanks.

Peter Tesar

Burt Henry

unread,
Feb 26, 2013, 6:53:23 PM2/26/13
to vinux-...@googlegroups.com
either use top or ps a and look for the process for vlc
then try kill-15 process number.
If for some reason that does not work, kill -9, or just plaiin kill may be the same as kill -15.
This will work for any program pretty much
If it does not show with ps a, do ps ax.
HTH, and you will need the x for gui programs.
--
B.H.
--
--
You received this message because you are subscribed to the Google Groups Vinux Support Forum.
To post to this group, send email to vinux-...@googlegroups.com.
To unsubscribe from this group, send email to vinux-suppor...@googlegroups.com.
For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en
 
Vinux Home Page: http://vinuxproject.org/
Vinux Virtual Edition: http://virtual.vinuxproject.org/
Vinux Wiki Documentation: http://wiki.vinuxproject.org/
 
---
You received this message because you are subscribed to the Google Groups "The Vinux Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vinux-suppor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

D.J.J. Ring, Jr.

unread,
Feb 26, 2013, 9:05:01 PM2/26/13
to vinux-...@googlegroups.com

I assume you have tried reading the manual.

man vlc

And

info  vlc

Thed do this.

sudo killall vlc

David

Burt Henry

unread,
Feb 26, 2013, 9:15:37 PM2/26/13
to vinux-...@googlegroups.com


You'd need to be root to kill a media player?
I wasn't thinking so much as it's true that kiilall works for GUI
programs, and I guess vlc launches the GUI even when started in a console?
There's bound to be a command to kill the program natively though, and if
it does start the gui when run from the commandline as I think it would,
there's probably a keyboard shortcut you can run when in the vlc window.


--
B. Henry
*follow me on Twitter @BurtHenry
*connect on *GTalk or *AIM
(this address)
*Yahoo
burt1iband
(&I'm on *FaceBook)


�?????�?????�?????�?????�?????�?????n�?????
> �
> �
> �
> �
>
>

Bill Taylor

unread,
Feb 26, 2013, 10:49:17 PM2/26/13
to vinux-...@googlegroups.com
Hi Peter,
try q (for Quit).
Bill

D.J.J. Ring, Jr.

unread,
Feb 27, 2013, 12:40:48 AM2/27/13
to vinux-...@googlegroups.com

If you ron vlc in terminal, it starts vlc gui.

I think if you start vlc in condole it might start vlc-nox, but perhapd not.

I know mplayer works like that.

Yes you need to sudo to use killall command.

David

On Feb 26, 2013 9:15 PM, "Burt Henry" <burt1...@gmail.com> wrote:


You'd need to be root to kill a media player?
I wasn't thinking so much as it's true that kiilall works for GUI programs, and I guess vlc launches the GUI even when started in a console?
There's bound to be a command to kill the program natively though, and if it does start the gui when run from the commandline as I think it would, there's probably a keyboard shortcut you can run when in the vlc window.


--
B. Henry
*follow me on Twitter @BurtHenry
 *connect on *GTalk or *AIM
(this address)
*Yahoo
burt1iband
(&I'm on *FaceBook)


ý?????ý?????ý?????ý?????ý?????ý?????ný?????

      To unsubscribe from this group, send email to vinux-support+unsubscribe@googlegroups.com.

      For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en
       
      Vinux Home Page: http://vinuxproject.org/
      Vinux Virtual Edition: http://virtual.vinuxproject.org/
      Vinux Wiki Documentation: http://wiki.vinuxproject.org/
       
      ---
      You received this message because you are subscribed to the Google Groups "The Vinux Support Forum" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to

      For more options, visit https://groups.google.com/groups/opt_out.
       
       


--
--
You received this message because you are subscribed to the Google Groups Vinux Support Forum.
To post to this group, send email to vinux-...@googlegroups.com.
To unsubscribe from this group, send email to vinux-support+unsubscribe@googlegroups.com.

For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en
 
Vinux Home Page: http://vinuxproject.org/
Vinux Virtual Edition: http://virtual.vinuxproject.org/
Vinux Wiki Documentation: http://wiki.vinuxproject.org/
 
---
You received this message because you are subscribed to the Google Groups "The Vinux Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to

For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
--
You received this message because you are subscribed to the Google Groups Vinux Support Forum.
To post to this group, send email to vinux-...@googlegroups.com.
To unsubscribe from this group, send email to vinux-support+unsubscribe@googlegroups.com.

For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en
 
Vinux Home Page: http://vinuxproject.org/
Vinux Virtual Edition: http://virtual.vinuxproject.org/
Vinux Wiki Documentation: http://wiki.vinuxproject.org/
 
---
You received this message because you are subscribed to the Google Groups "The Vinux Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
--
You received this message because you are subscribed to the Google Groups Vinux Support Forum.
To post to this group, send email to vinux-...@googlegroups.com.
To unsubscribe from this group, send email to vinux-support+unsubscribe@googlegroups.com.

For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en

Vinux Home Page: http://vinuxproject.org/
Vinux Virtual Edition: http://virtual.vinuxproject.org/
Vinux Wiki Documentation: http://wiki.vinuxproject.org/

--- You received this message because you are subscribed to the Google Groups "The Vinux Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vinux-support+unsubscribe@googlegroups.com.

Burt Henry

unread,
Feb 27, 2013, 1:22:49 AM2/27/13
to vinux-...@googlegroups.com


I've used this on skype regularly when using vinux3.x and didn't use sudo.
I think not generally needed on Ubuntu, but my memory is pretty bad..lol

Of course makes total sense what you say re starting these programs in
console vs gnome-terminal or similar.
Thanks.




--
B. Henry
*follow me on Twitter @BurtHenry
*connect on *GTalk or *AIM
(this address)
*Yahoo
burt1iband
(&I'm on *FaceBook)


�?????�?????�?????�?????�?????�?????n�?????

>
> If you ron vlc in terminal, it starts vlc gui.
>
> I think if you start vlc in condole it might start vlc-nox, but perhapd not.
>
> I know mplayer works like that.
>
> Yes you need to sudo to use killall command.
>
> David
>
> On Feb 26, 2013 9:15 PM, "Burt Henry" <burt1...@gmail.com> wrote:
>
>
> You'd need to be root to kill a media player?
> I wasn't thinking so much as it's true that kiilall works for GUI programs, and I guess vlc launches the GUI
> even when started in a console?
> There's bound to be a command to kill the program natively though, and if it does start the gui when run from
> the commandline as I think it would, there's probably a keyboard shortcut you can run when in the vlc window.
>
>
> --
> B. Henry
> *follow me on Twitter @BurtHenry
> �*connect on *GTalk or *AIM
> (this address)
> *Yahoo
> burt1iband
> (&I'm on *FaceBook)
>
>
> �?????�?????�?????�?????�?????�?????n�?????
>
>
> � � � To unsubscribe from this group, send email to vinux-suppor...@googlegroups.com.
> � � � For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en
> � � � �
> � � � Vinux Home Page: http://vinuxproject.org/
> � � � Vinux Virtual Edition: http://virtual.vinuxproject.org/
> � � � Vinux Wiki Documentation: http://wiki.vinuxproject.org/
> � � � �
> � � � ---
> � � � You received this message because you are subscribed to the Google Groups "The Vinux Support
> Forum" group.
> � � � To unsubscribe from this group and stop receiving emails from it, send an email to
> � � � vinux-suppor...@googlegroups.com.
> � � � For more options, visit https://groups.google.com/groups/opt_out.
> � � � �
> � � � �
>
>
> --
> --
> You received this message because you are subscribed to the Google Groups Vinux Support Forum.
> To post to this group, send email to vinux-...@googlegroups.com.
> To unsubscribe from this group, send email to vinux-suppor...@googlegroups.com.
> For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en
> �
> Vinux Home Page: http://vinuxproject.org/
> Vinux Virtual Edition: http://virtual.vinuxproject.org/
> Vinux Wiki Documentation: http://wiki.vinuxproject.org/
> �
> ---
> You received this message because you are subscribed to the Google Groups "The Vinux Support Forum"
> group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> vinux-suppor...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
> �
> �
>
> --
> --
> You received this message because you are subscribed to the Google Groups Vinux Support Forum.
> To post to this group, send email to vinux-...@googlegroups.com.
> To unsubscribe from this group, send email to vinux-suppor...@googlegroups.com.
> For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en
> �
> Vinux Home Page: http://vinuxproject.org/
> Vinux Virtual Edition: http://virtual.vinuxproject.org/
> Vinux Wiki Documentation: http://wiki.vinuxproject.org/
> �
> ---
> You received this message because you are subscribed to the Google Groups "The Vinux Support Forum"
> group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> vinux-suppor...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
> �
> �
>
>
>
> --
> --
> You received this message because you are subscribed to the Google Groups Vinux Support Forum.
> To post to this group, send email to vinux-...@googlegroups.com.
> To unsubscribe from this group, send email to vinux-suppor...@googlegroups.com.
> For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en
>
> Vinux Home Page: http://vinuxproject.org/
> Vinux Virtual Edition: http://virtual.vinuxproject.org/
> Vinux Wiki Documentation: http://wiki.vinuxproject.org/
>
> --- You received this message because you are subscribed to the Google Groups "The Vinux Support Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> vinux-suppor...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
> --
> --
> You received this message because you are subscribed to the Google Groups Vinux Support Forum.
> To post to this group, send email to vinux-...@googlegroups.com.
> To unsubscribe from this group, send email to vinux-suppor...@googlegroups.com.
> For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en
> �
> Vinux Home Page: http://vinuxproject.org/
> Vinux Virtual Edition: http://virtual.vinuxproject.org/
> Vinux Wiki Documentation: http://wiki.vinuxproject.org/
> �
> ---
> You received this message because you are subscribed to the Google Groups "The Vinux Support Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> vinux-suppor...@googlegroups.com.
> �
> �
>
>

Cindy-Sue Causey

unread,
Feb 27, 2013, 5:07:11 AM2/27/13
to vinux-...@googlegroups.com
For many programs I've run through terminal, CTRL plus C has closed
them down, stopped them from running, also.

Cindy

- :: -
Cindy-Sue Causey
New: Carolina Chickadee at Suet Cup
http://www.flickr.com/photos/mountainsplash/
https://www.youtube.com/watch?v=Y393S1cN78o
Talking Rock, Pickens County, Georgia, USA
~

Willem van der Walt

unread,
Feb 27, 2013, 5:33:26 AM2/27/13
to vinux-...@googlegroups.com

From another terminal, do killall vlc
I have not followed the thread, but killall will fourcefully stop the
program.
> --
> --
> You received this message because you are subscribed to the Google Groups Vinux Support Forum.
> To post to this group, send email to vinux-...@googlegroups.com.
> To unsubscribe from this group, send email to vinux-suppor...@googlegroups.com.
> For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en
>
> Vinux Home Page: http://vinuxproject.org/
> Vinux Virtual Edition: http://virtual.vinuxproject.org/
> Vinux Wiki Documentation: http://wiki.vinuxproject.org/
>
> ---
> You received this message because you are subscribed to the Google Groups "The Vinux Support Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vinux-suppor...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
> --
> This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
> The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
>
> This message has been scanned for viruses and dangerous content by MailScanner,
> and is believed to be clean.
>
> Please consider the environment before printing this email.
>
>

Rob Hudson

unread,
Feb 27, 2013, 6:04:53 AM2/27/13
to vinux-...@googlegroups.com
Or from another terminal, do

pgrep -U <userid> vlc

Then kill the pid that comes up.

Or better yet, run vlc in a screen session, that way you won't have to mess
around with different consoles. I haven't been following this thread either,
but this usually works.

Peter Tesar

unread,
Feb 27, 2013, 10:46:32 AM2/27/13
to vinux-...@googlegroups.com

Thanks for your suggestions to cancel vlc, when run from the console.

 

I wanted something simple for my CLI document. I am aiming my article

‘how to Use the Command Line”, primarily at beginners.

 

The problem with switching to another console or terminal, is the constant distraction from an audio track being played by vlc.

 

Opening another virtual console (ctrl+alt+F2) requires coping with the user and password prompts.

 

Using ‘top’ is the most difficult because there is the added step of getting a process ID before issuing the ‘kill’ command.

 

Going to a terminal with ctrl+alt+t and typing “killall vlc” is the simplest and it works.

 

Mplayer can be killed with the ‘q’ or ctrl+c. These do not work with vlc when playing a video file.

 

When streaming BBC4 radio with:

   $ vlc URL

ctrl+c will kill vlc and return me to the command prompt.

 

 However, when I play a video with:

   $ vlc my-video.vob

Ctrl+c, and a few other ctrl hot keys, does not work.

 

Mplayer works fine with an audio file:

   $ mplayer my-audio.mp3

The ‘q’ is the simple way to quit mplayer.

 

Mplayer does not want to play my video files with the formats: .vob, .mp4 and .avi.

It gives the message:

    ... cannot get I/O permissions.

Vlc does play these video formats, without additional options.


I was hoping for a simple hot key that would kill vlc. I can't expect a beginner to jump through a lot of hoops.


Thanks again for your responses.

 

Peter Tesar


Burt Henry

unread,
Feb 27, 2013, 10:47:05 AM2/27/13
to vinux-...@googlegroups.com
yes, this is a standard quit command, but there are exceptions to when
this will work.

Cindy-Sue Causey

unread,
Feb 27, 2013, 10:56:28 AM2/27/13
to vinux-...@googlegroups.com
Yes, of course there are exceptions when CTRL-C might work, just as
for all the other possibilities being suggested here that also might
or might not work. Most often for me when CTRL-C doesn't work, trying
the Q I've already seen mentioned has been the one that does. :)

Cindy

- :: -
Cindy-Sue Causey
New: Carolina Chickadee at Suet Cup
http://www.flickr.com/photos/mountainsplash/
https://www.youtube.com/watch?v=qt6yLJqbpDM
Talking Rock, Pickens County, Georgia, USA
~



lsmi...@hare.demon.co.uk

unread,
Feb 27, 2013, 11:31:31 AM2/27/13
to vinux-...@googlegroups.com

Hi: Have you considered bash job control? When a command is run in
the background, its assigned a job number (starting at 1) and can be
controlled using that job number. e.g.:


$ sleep 60 &
[1] 3010
$
$ kill %1
$
[1]+ Terminated sleep 60
$
sleep 60 &
[1] 3198
$
$ jobs
[1]+ Running sleep 60 &
$ fg %1
sleep 60

This is simple and doesn't involve hunting down pids.




--
Les Smithson

Angelo Sonnesso

unread,
Feb 28, 2013, 5:33:30 AM2/28/13
to vinux-...@googlegroups.com
Please let me know when the article is finished.
It sounds like a terrific idea.
 
----- Original Message -----

Burt Henry

unread,
Feb 28, 2013, 7:55:17 AM2/28/13
to vinux-...@googlegroups.com
A couple thoughts and un-solicited opinions.smiles.
First I would like to say that an article's certainly a good idea. It should be kept simple. I just tested a couple things to make sure, would have been a better tester if I'd realized that� you were asking specifically about vid playing I'd have been a better tester/only tested audio files as I mainly use vlc for this and I was not thinking about any difference in how audio and video would respond to hotkeys/should have, but...
One important thing is that indeed sudo is not and should not be needed for killall with any program that's not started with these elevated permissions. (just wanted to clarify as this had been brought up in another msg.)
There's no great difficulty with� typing user name and pw, i.e. you type your usernmae hit enter and then your password, something that even a new user should be able to do as one does not have to wait any appreciable amount of time, and if it does not enter correctly for some reason you just do the same thing again. If vlc's opened from a terminal, comtrol+alt t it is closed from that terminal with control c, but as you say the same is only true from a console for audio files. I seldom suggest using gnome for running programs from the commandline. (good for killall..lol.)
I guess my one question/descenting opinion is this: why would you have a novice user using CLI for video, or the commandline� to start VLC or any GUI program that's inaccessible,) if you are aiming at maximum simplicity when� There are accessible ways to play video content such as totem or rhythmbox. When run from a true CLI console control + C does not work for video with VLC as you say. I'd look at the online help for a way to toggle fullscreen-mode, and� if one does not exist that's a serious strike against a fine media player. Totem for instance closes with control c�� video as well as audio, but one must start the program with display exported.
export DISPLAY =:0
Again this complicates things for the new user a bit, but nothing's running to distract with noise when the command is entered and it is good until one logs out of the console or reattaches x11.
I have a couple suggestions for the included .bash_aliases file including an alias for exporting display.
Again I agree that keeping it simple is important, but learning to work from more than one console is basic to CLI usage, not in the jumping through hoops category in my opinion. I atually almost always start more than one console as soon as I log-on to my computer. This is good practice as one is ready to do what needs to be done with out the delay of logging in when one is working.
Keep up the good work.
Regards,
Burt

��
�

On 28/02/2013 04:33, Angelo Sonnesso wrote:
Please let me know when the article is finished.
It sounds like a terrific idea.
�
----- Original Message -----
Sent: Wednesday, February 27, 2013 10:46 AM
Subject: [VINUX-SUPPORT] How to kill VLC when running from the command line?

Thanks for your suggestions to cancel vlc, when run from the console.

I wanted something simple for my CLI document. I am aiming my article

�how to Use the Command Line�, primarily at beginners.

The problem with switching to another console or terminal, is the constant distraction from an audio track being played by vlc.

Opening another virtual console (ctrl+alt+F2) requires coping with the user and password prompts.

Using �top� is the most difficult because there is the added step of getting a process ID before issuing the �kill� command.

Going to a terminal with ctrl+alt+t and typing �killall vlc� is the simplest and it works.

Mplayer can be killed with the �q� or ctrl+c. These do not work with vlc when playing a video file.

When streaming BBC4 radio with:

� �$ vlc URL

ctrl+c will kill vlc and return me to the command prompt.

�However, when I play a video with:

�� $ vlc my-video.vob

Ctrl+c, and a few other ctrl hot keys, does not work.

Mplayer works fine with an audio file:

�� $ mplayer my-audio.mp3

The �q� is the simple way to quit mplayer.

Mplayer does not want to play my video files with the formats: .vob, .mp4 and .avi.

It gives the message:

��� ... cannot get I/O permissions.

Vlc does play these video formats, without additional options.


I was hoping for a simple hot key that would kill vlc. I can't expect a beginner to jump through a lot of hoops.


Thanks again for your responses.

Peter Tesar


--
--
You received this message because you are subscribed to the Google Groups Vinux Support Forum.
To post to this group, send email to vinux-...@googlegroups.com.
To unsubscribe from this group, send email to vinux-suppor...@googlegroups.com.
For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en
�

Vinux Home Page: http://vinuxproject.org/
Vinux Virtual Edition: http://virtual.vinuxproject.org/
Vinux Wiki Documentation: http://wiki.vinuxproject.org/
�

---
You received this message because you are subscribed to the Google Groups "The Vinux Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vinux-suppor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
�
�
--
--
You received this message because you are subscribed to the Google Groups Vinux Support Forum.
To post to this group, send email to vinux-...@googlegroups.com.
To unsubscribe from this group, send email to vinux-suppor...@googlegroups.com.
For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en
�

Vinux Home Page: http://vinuxproject.org/
Vinux Virtual Edition: http://virtual.vinuxproject.org/
Vinux Wiki Documentation: http://wiki.vinuxproject.org/
�

---
You received this message because you are subscribed to the Google Groups "The Vinux Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vinux-suppor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
�
�

Don Marang

unread,
Feb 28, 2013, 11:18:31 AM2/28/13
to vinux-...@googlegroups.com
I do not remember the original post or what else is being attempted here, so my suggestions below may not be relevant.  

VLC Player's mnormal hotkey for full screen is normally just pressing the letter f.  The hotkey to quit is just the letter q.  VLC has it's own set of commands, which allow you to change these assignments, or any other VLC function.  VLC commands also allow scripting.  Below is an old article for using the VLC commands in a bash script to record Internet radio at a set time. 



http://www.ubuntugeek.com/how-to-record-internet-radio-using-vlc.html

Don Marang
Vinux Package Development Coordinator - vinuxproject.org


On 2/28/2013 7:55 AM, Burt Henry wrote:
A couple thoughts and un-solicited opinions.smiles.
First I would like to say that an article's certainly a good idea. It should be kept simple. I just tested a couple things to make sure, would have been a better tester if I'd realized that  you were asking specifically about vid playing I'd have been a better tester/only tested audio files as I mainly use vlc for this and I was not thinking about any difference in how audio and video would respond to hotkeys/should have, but...

One important thing is that indeed sudo is not and should not be needed for killall with any program that's not started with these elevated permissions. (just wanted to clarify as this had been brought up in another msg.)
There's no great difficulty with  typing user name and pw, i.e. you type your usernmae hit enter and then your password, something that even a new user should be able to do as one does not have to wait any appreciable amount of time, and if it does not enter correctly for some reason you just do the same thing again. If vlc's opened from a terminal, comtrol+alt t it is closed from that terminal with control c, but as you say the same is only true from a console for audio files. I seldom suggest using gnome for running programs from the commandline. (good for killall..lol.)
I guess my one question/descenting opinion is this: why would you have a novice user using CLI for video, or the commandline  to start VLC or any GUI program that's inaccessible,) if you are aiming at maximum simplicity when  There are accessible ways to play video content such as totem or rhythmbox. When run from a true CLI console control + C does not work for video with VLC as you say. I'd look at the online help for a way to toggle fullscreen-mode, and  if one does not exist that's a serious strike against a fine media player. Totem for instance closes with control c   video as well as audio, but one must start the program with display exported.
export DISPLAY =:0
Again this complicates things for the new user a bit, but nothing's running to distract with noise when the command is entered and it is good until one logs out of the console or reattaches x11.
I have a couple suggestions for the included .bash_aliases file including an alias for exporting display.
Again I agree that keeping it simple is important, but learning to work from more than one console is basic to CLI usage, not in the jumping through hoops category in my opinion. I atually almost always start more than one console as soon as I log-on to my computer. This is good practice as one is ready to do what needs to be done with out the delay of logging in when one is working.
Keep up the good work.
Regards,
Burt

  
 
On 28/02/2013 04:33, Angelo Sonnesso wrote:
Please let me know when the article is finished.
It sounds like a terrific idea.
 
----- Original Message -----
Sent: Wednesday, February 27, 2013 10:46 AM
Subject: [VINUX-SUPPORT] How to kill VLC when running from the command line?

Thanks for your suggestions to cancel vlc, when run from the console.

I wanted something simple for my CLI document. I am aiming my article

‘how to Use the Command Line”, primarily at beginners.

The problem with switching to another console or terminal, is the constant distraction from an audio track being played by vlc.

Opening another virtual console (ctrl+alt+F2) requires coping with the user and password prompts.

Using ‘top’ is the most difficult because there is the added step of getting a process ID before issuing the ‘kill’ command.

Going to a terminal with ctrl+alt+t and typing “killall vlc” is the simplest and it works.

Mplayer can be killed with the ‘q’ or ctrl+c. These do not work with vlc when playing a video file.

When streaming BBC4 radio with:

   $ vlc URL

ctrl+c will kill vlc and return me to the command prompt.

 However, when I play a video with:

   $ vlc my-video.vob

Ctrl+c, and a few other ctrl hot keys, does not work.

Mplayer works fine with an audio file:

   $ mplayer my-audio.mp3

The ‘q’ is the simple way to quit mplayer.

Mplayer does not want to play my video files with the formats: .vob, .mp4 and .avi.

It gives the message:

    ... cannot get I/O permissions.

Vlc does play these video formats, without additional options.


I was hoping for a simple hot key that would kill vlc. I can't expect a beginner to jump through a lot of hoops.


Thanks again for your responses.

Peter Tesar


--
--
You received this message because you are subscribed to the Google Groups Vinux Support Forum.
To post to this group, send email to vinux-...@googlegroups.com.
To unsubscribe from this group, send email to vinux-suppor...@googlegroups.com.
For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en
 
Vinux Home Page: http://vinuxproject.org/
Vinux Virtual Edition: http://virtual.vinuxproject.org/
Vinux Wiki Documentation: http://wiki.vinuxproject.org/
 
---
You received this message because you are subscribed to the Google Groups "The Vinux Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vinux-suppor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
--
--
You received this message because you are subscribed to the Google Groups Vinux Support Forum.
To post to this group, send email to vinux-...@googlegroups.com.
To unsubscribe from this group, send email to vinux-suppor...@googlegroups.com.
For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en
 
Vinux Home Page: http://vinuxproject.org/
Vinux Virtual Edition: http://virtual.vinuxproject.org/
Vinux Wiki Documentation: http://wiki.vinuxproject.org/
 
---
You received this message because you are subscribed to the Google Groups "The Vinux Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vinux-suppor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
--
--
You received this message because you are subscribed to the Google Groups Vinux Support Forum.
To post to this group, send email to vinux-...@googlegroups.com.
To unsubscribe from this group, send email to vinux-suppor...@googlegroups.com.
For more options, visit this group at: http://groups.google.com/group/vinux-support?hl=en
 
Vinux Home Page: http://vinuxproject.org/
Vinux Virtual Edition: http://virtual.vinuxproject.org/
Vinux Wiki Documentation: http://wiki.vinuxproject.org/
 

Peter Tesar

unread,
Feb 28, 2013, 6:27:05 PM2/28/13
to vinux-...@googlegroups.com

Burt,

�

My 11 heading document �How to Use the Command Line Interface�, in the old Vinux Wiki, generated a lot of hits. Since the Wiki was down, I have spent the last year adding to it. Now, there are 23 headings and many more examples.

�

I know that there is an interest in learning how to use the command line and that it can easily turnoff beginners (Windows users).

�

I wanted it simple enough for a beginner to grasp. Some of the basic concepts include:

� The command line and running commands,

� The directory tree and moving around it,

� Listing contents of a directory,

� Online help,

� Aliases and scripts.

�

The examples are used to illustrate rather than be verbose with explanations.

I chose tasks with examples that I thought would be of interest, not only to the beginner but also to a more advanced user.

�

Tasks like ripping music from a CD and the process of scanning to an image file, aligning it horizontally and performing OCR using tesseract and cuneiform.

�

Examples are given, with some of the useful options, and all of the examples work without the need to make complicated adjustments.

�

Another goal was to give the command names that many of us know about but a beginner wouldn�t. Those who are interested,� can then use the man pages or Google it.


A blind person may not want to play a video from the command line but they probably will want to rip it from the DVD using vobcopy, and then extract the audio track using ffmpeg.

�

Since there is no quick way to kill the vlc (playing a video file), I won�t give an example. I consider the need to open up a second console or a terminal, and typing �killall vlc� to be more than just simple.

�

Not all beginners will think the same way and overall, I hope that my approach will prove useful.

�

Thanks for your feedback.

�

Peter Tesar

Burt Henry

unread,
Feb 28, 2013, 9:48:29 PM2/28/13
to vinux-...@googlegroups.com


Hmm,
It's your baby, and I'd like to check it out.
I guess we will have to disagree regarding using more than one console,
but you mention tasks that seem much more advanced than the limited
multitasking I refer to..smiles.
The ability to do more than one thing at a time, or do that extra little
bit that it takes to please the whole family or a group of friends by
making avid look good as I bet VLC does would be worth it to many people I
think, and if one were to open consoles at the beginning of their
command line session it's certainly no harder than switching between
windows in a gui of what ever ilk.
I won't try and persuade you any more, just saying that I've been using
Linux for less time than you I'm pretty sure, and found the ability to
work from more than one console interesting important and easy shortly
after starting to use Vinux which was my first Linux distro to try.
Screen is great, and with some examples as you describe your writing
to contain, would
be valuable, but I found screen a bit more difficult to grasp in the
beginning than using a few consoles.
Is your article online now, or is it waiting for revision?
I ask both because I want to read it, (I've never done scanning from the
command line for instance), and to see if I may wish to link to one or
another section to go with some articles I have written or am writing that
I hope will mostly be ready for public consumption by early to mid spring.
I've got a couple bits on configuring LLynx, a tour of the file system,
and was going to do something on working with files. I may only need to do
something on permissions and ownership if you explain listing and copying
files and such. I also am half way through a bit on redirecting output,
i.e. cat, and using > or >> as well as script to save goings on to study
or send to others to get help
Along with this I've also been working on some GUI programs. I have one
pretty much ready for primetime on thunderbird chat, and another in the
works on navigating skype on Vinux4 or other distros that can use the QT
support with Orca. When you have time, drop me a link or copy of what you
are doing in an email, and if you are interested in giving opinions on
usability of other ppl's howtos, I could use feedback from time to time.
I just hope I have the time to do all I must do,test and learn a bit and
finish the documentation projects I've started.
Regards, and excuse a lack of spell check/in a hurry..smiles.



--
B. Henry
*follow me on Twitter @BurtHenry
*connect on *GTalk or *AIM
(this address)
*Yahoo
burt1iband
(&I'm on *FaceBook)


�?????�?????�?????�?????�?????�?????n�?????

Rob Hudson

unread,
Feb 28, 2013, 10:10:46 PM2/28/13
to vinux-...@googlegroups.com
urt Henry wrote:

Screen is great, and with some examples as you describe your writing

to contain, would

be valuable, but I found screen a bit more difficult to grasp in the

beginning than using a few consoles.

Can you elaborate on that? What's hard to grasp about screen? NOt
criticizing, just wondering.

Christopher Chaltain

unread,
Feb 28, 2013, 10:55:28 PM2/28/13
to vinux-...@googlegroups.com
I don't mean to speak for Burt, and although screen is on my list of
things to look into, I haven't really felt a pressing need since I have
multiple terminals and six consoles available to me. To me, in this
example, taking advantage of terminals and consoles, which you already
have in abundance, and which the the user is already aware of, is easier
than introducing another concept just to run the kill command. Like I
said, nothing against screen, and that's just my $0.02.

--
Christopher (CJ)
chaltain at Gmail

Burt Henry

unread,
Mar 1, 2013, 3:23:10 PM3/1/13
to vinux-...@googlegroups.com
Rob and all,
Screen is not that hard to use, but it is a whole new set of keystrokes to
learn, and my memory is not the greatest.
Attaching and reattaching for example was not obvious to me, the concept
that is. Remember that I'm talking about my 1ssst look at screen when I
had only a few weeks, maybe months, using Vinux. I don't remember what
else, but there were a few other things that I didn't completely
understand in the beginning.
I left screen alone, and didn't go back to it for well over a year. the
2nd try or actually I think the 3rd time I started screen I'd reread some
documentation and could do most of what I wanted to with out any issues.
While I usually do things in multiple consoles these days screen does
stuff that puts it pretty high up on the "things to learn list" that I'd
give to a new blind-vinux-user.
It's especially valuable if you ever use ssh to run a remote machine. It
can be a good way to start off running if you habitually want to use the
same programs in your CLI sessions, e.g. starting an email client,
ttytter, and irssi for instance, all at once by starting Screen.
You can cut and paste with screen as well, while speakup's copy and paste
keys copy, not cut as is announced, leaving the content in its original
position.
There's much more that I've not yet learned, but it is a powerful tool,
and again, one I recommend to any and all who regularly work on the
command line. You can log your screen sessions as well, so this gives an
alternative to script. I wish I'd been using it right now to make it
easier to edit this message.
Regards, and I do agree that for the newbee that using a 2nd console is
easier than working with screen for the job in question.
Screen documentation is certainly there, but I think a quick-start guide
for beginners, written for screenreader-users would be valuable. The
existing docs show alot and for the novice something that cuts right to
the chase and gives examples of how to do a few more or less basic tasks
could make folks more productive, folks who might well be turned off,
scared or confused by the man pages and the like.
I can't remember where the best, most new-user friendly stuff is, i.e.
man-page, info nodes, or a help command, but I was able to start using
screen pretty quickly when I calmly read which ever one I used.
That brings up another often overlooked point, info pages.
Instead of man, type info and the name of a program you want to learn
about.
In some cases info will just return the man-page, or nothing, but in many
cases a good and more thorough explanation of an application is found
with info. Some progam devs give more of a howto with examples in the
"iinfo" compared to that in the manpage. Things are also organized with
links, so one can jump right to the sectiono most relevant to them.


-- B. Henry *follow me on Twitter @BurtHenry
*connect on *GTalk or *AIM
(this address)
*Yahoo
burt1iband
(&I'm on *FaceBook)


�?????�?????�?????�?????�?????�?????n�?????

B.Henry

unread,
Sep 23, 2013, 10:21:54 AM9/23/13
to vinux-...@googlegroups.com
Much easier than looking for process numbers and then using kill commandsis to use pkill.
pkill vlc will handle both steps with the one command. Also, pgrep filters ps results so that you get info only on the one program you are interested in with one command.
--
B.H.

Peter Tesar

unread,
Sep 23, 2013, 11:16:06 AM9/23/13
to vinux-...@googlegroups.com
To kill VLC depends on weather you are audio streaming (a radio station) or playing a video movie.

Use ctrl+c to cancel the audio streaming.

While a movie is playing, I open a second console and type:
� $ killall vlc

Peter Tesar

You received this message because you are subscribed to the Vinux Support mailing list.
To unsubscribe from this group, email vinux-suppor...@googlegroups.com
Our website: www.vinuxproject.org

Dowl Bee

unread,
Nov 20, 2014, 2:29:08 AM11/20/14
to vinux-...@googlegroups.com
Is there not a quick fix for this yet?? Wow, I am shocked...

Willem van der Walt

unread,
Nov 20, 2014, 3:08:18 AM11/20/14
to vinux-...@googlegroups.com
Go to another console, log on as the same user that is running vlc or as
root is you have a root user, then do:
killall -9 vlc
HTH, Willem
> --
> Remember to frequently check our Wiki: http://wiki.vinuxproject.org
> Our website: http://www.vinuxproject.org
> You can search or view our group on the web: http://groups.google.com/group/vinux-support
> Talk to us on IRC irc.vinuxproject.org #Vinux
>
> Unsubscribe from Vinux by emailing vinux-suppor...@googlegroups.com
> ---
> You received this message because you are subscribed to the Google Groups "Vinux support forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vinux-suppor...@googlegroups.com.
>

kyle

unread,
Nov 20, 2014, 3:40:12 AM11/20/14
to vinux-...@googlegroups.com
sudo pkill -9 vlc from a sseperate terminal window consol window or create a desktop shortcut to kill it

Sent from my iPhone

Peter Tesar

unread,
Nov 20, 2014, 8:25:59 AM11/20/14
to vinux-...@googlegroups.com

Hello,

 

I have no trouble quitting VLC in the virtual console. I am referring to the virtual console with speakup.

 

I use VLC to stream the BBC4 and my script is below.

 

VLC is present and the cursor must be on a command line. I can type the following commands followed by ENTER:

   pause, play or quit.

 

The quit command returns me to the command line.

 

Peter

 

#!/bin/bash

echo 'BBC4 PLS'

vlc { name = "BBC4", url = http://www.bbc.co.uk/radio/listen/live/r4lw.pls

echo 0

Darrell Bowles

unread,
Nov 20, 2014, 11:01:37 AM11/20/14
to vinux-...@googlegroups.com
Well, what I would do is when you run a program
from terminal I would run it like this vlc &
So if it doesn’t close, type ps and enter. This will show you an ID, followed by the
Sent: Thursday, November 20, 2014 8:25 AM so let’s say that the ID is 1212 So you would type kill followed by 1212 and enter.
That should close it.
Thanks,
Darrell
Subject: VINUX-SUPPORT: Re: How to kill VLC when running from the command line?
 

Darrell Bowles

unread,
Nov 20, 2014, 11:10:29 AM11/20/14
to vinux-...@googlegroups.com
Let me try this again, as my client broke part of the message.
WHen I run a program from the terminal or consol, I type the name of the program followed by a shift on the 7 key.
If the program does not close properly, you can type tye command Ps.
This will bring up a list of process ids. For example if VLc has the id of 7575, you would type kill 7575.
Hope this helps,
Darrell
Reply all
Reply to author
Forward
0 new messages