Thanks, that does the trick.
Mike Meyer <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]:
> Yeah, but it takes work on both ends. You could wrap your mpg123 in a
> shell script like so:
>
> #!/bin/sh
> mpg123 "$@" &
> echo $! >/tmp/mpg123.pid
>
>
> Or in python 2.4:
>
> #!/usr/bin/env pyt
Brian <[EMAIL PROTECTED]> writes:
> On a Slackware 9.1 box, I'm trying to detect if mpg123 is currently
> running/playing a song so that when the song is done, it'll play the next
> in the list. The problem is that popen'ing ps doesn't always give a
> correct return. My function is below and
On a Slackware 9.1 box, I'm trying to detect if mpg123 is currently
running/playing a song so that when the song is done, it'll play the next
in the list. The problem is that popen'ing ps doesn't always give a
correct return. My function is below and I added a second check that runs
1 second