logo       

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

user-groups.linux.kansascity

Subject: Re: Fun stuff . . . MP3 playing

Wow -- that is pretty cool . . . and it works with mpg123 also. What's the difference between mpg321 and 123 ?

-- Bradley Miller

At 12:00 AM 11/28/2003 -0600, you wrote:
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