Hy again,

I need a little more help with a more linux shell based problem, please.
I've tried the wrapper below, but the problem is, that the 'exec'
Statement parses [EMAIL PROTECTED]
So when freevo launches the wrapper (called mymplayer in this case) with:

/usr/local/bin/mymplayer //path/to/some\ folder/file.avi

mymplayer actually launches:
/usr/local/bin/mplayer /path/to some/file.avi
whith exists of course with the error telling me that the file
'/path/to' is not found.

So, either freevo has to double-qoute the spaces or 'exec' or bash needs
to keep the slashes....

Greetings
Pete



> On Mon, 2005-10-10 at 15:52 +0200, Pete Hillebrand wrote:
>> recording starts, which works fine too. But how can i prevent mplayer
>> from
>> beeing started while mencoder is running? I would be happy if i dont
>> have
>> to hack freevo code...
>
> You could create a simple wrapper for mplayer that checks to see if
> mencoder is running and if so, simply exits, otherwise runs mplayer.
> Then set the mplayer value to this script in ~/.freevo/freevo.conf.
>
> Something like:
>
>      #/bin/bash
>         if (pidof mencoder>/dev/null); then
>            exit 1
>         fi
>         exec mplayer $@
>
> Cheers,
> Jason.
>




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to