[accessiblelinux] Re: sox, enterrupting playback with a script
- From: "Bohdan R. Rau" <ethanak@xxxxxxxxx>
- To: <accessiblelinux@xxxxxxxxxxxxx>
- Date: Mon, 06 Aug 2012 07:53:55 +0100
On Sun, 05 Aug 2012 13:30:59 -0400, Storm Dragon wrote:
[...]
Alternatively, is there a way to get the pid of a program you
launched into a variable? If that were possible I could just do kill
pid to cause it to stop.
Simply (in bash):
play -q /your/music.mp3 </dev/null >/dev/null 2>&1 &
pid=$!
Don't forget to put play command to background!
ethanak
--
http://milena.polip.com/ - Pa pa, Ivonko!
Tips and tricks to make Linux work for you are at:
http://www.stormdragon.us/
To post messages to the list send mail to:
accessiblelinux@xxxxxxxxxxxxx
Change your subscription or the way you receive mail at:
//www.freelists.org/list/accessiblelinux
The List's archives are located at:
//www.freelists.org/archive/accessiblelinux
Learn the Linux command line:
http://en.flossmanuals.net/gnulinux
Other related posts:
- » [accessiblelinux] sox, enterrupting playback with a script- Storm Dragon
- » [accessiblelinux] Re: sox, enterrupting playback with a script- Kyle
- » [accessiblelinux] Re: sox, enterrupting playback with a script- Storm Dragon
- » [accessiblelinux] Re: sox, enterrupting playback with a script- Kyle
- » [accessiblelinux] Re: sox, enterrupting playback with a script- Storm Dragon
- » [accessiblelinux] Re: sox, enterrupting playback with a script - Bohdan R. Rau
- » [accessiblelinux] Re: sox, enterrupting playback with a script- Kyle
- » [accessiblelinux] Re: sox, enterrupting playback with a script- Kyle
- » [accessiblelinux] Re: sox, enterrupting playback with a script- Storm Dragon
- » [accessiblelinux] Re: sox, enterrupting playback with a script- Kyle
- » [accessiblelinux] Re: sox, enterrupting playback with a script- Storm Dragon