logo       

Re: Fun stuff . . . MP3 playing: msg#00918

user-groups.linux.kansascity

Subject: Re: Fun stuff . . . MP3 playing

On Thu, 27 Nov 2003, Bradley Miller wrote:

> stereo. This is my little "random play jukebox" command:
>
> mpg123 -g 40 -z -@ files.lst

It gets better. You can control this command line player remotely. I'm
not sure about mpg123, but its GNU replacement, mpg321 allows process
signals for job control:

killall -2 mpg321

will give it the control-c (SIGINT) to skip to the next selection.

killall -19 mpg321

will "pause" it by suspending (SIGSTOP) the program in the background, and

killall -18 mpg321

to resume! (SIGCONT)

I'm sure there are others, but you can always hack the source code to trap
the other signals into doing a useful functions. The kill or killall
command with the -l option will show you possible signals to use.

Have your window manager, cron job, or keyboard events control your
playlist! The e16keyedit utility for enlightnment lets you remap
keys directly into command lines.

Signals are one of the best kept secrets and a powerful tool.


KC Linux Users Group -- to unsubscribe send mail to
majordomo-3DadQFcgQnvYtjvyW6yDsg@xxxxxxxxxxxxxxxx
Enter without the quotes in body of message "unsubscribe kclug"



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise