[MPlayer-dev-eng] run command patch

compn tempn at twmi.rr.com
Tue Feb 14 21:49:56 CET 2012


On Tue, 14 Feb 2012 20:35:09 +0100, Reimar Döffinger wrote:
>On Tue, Feb 14, 2012 at 10:10:56AM -0500, compn wrote:
>> On Tue, 14 Feb 2012 12:32:32 +0100, Diego Biurrun wrote:
>> >On Sun, Feb 12, 2012 at 09:16:18PM +0100, Jan Christoph Uhde wrote:
>> >> --- DOCS/tech/slave.txt	(revision 34705)
>> >> +++ DOCS/tech/slave.txt	(working copy)
>> >> @@ -508,11 +508,16 @@
>> >>  
>> >> -run <value>
>> >> -    Run <value> as shell command. In OSD menu console mode stdout and stdin
>> >> +run <string>
>> >> +    Run <string> as shell command. Properties are expanded before the string
>> >> +    is passed as argument to sh. In OSD menu console mode stdout and stdin
>> >>      are through the video output driver.
>> >>  
>> >> +    Example:
>> >> +    run "echo '${filename} ${stream_pos}' >> ~/interesting position"
>> >> +    Most shells would not be able to do this Parameter Expansion.
>> >
>> >Your remark about shells mystifies me.
>> 
>> 'this works only on bash, tcsh, etc'
>
>It should work with any shell that supports "echo" and ">>",
>I think that includes even Windows cmd.exe, so yes, I

except for "~/interesting" not working in cmd.exe.
echo and >> do work on cmd.exe.

you could just add another line how to do it on windows if anyone cares
about it.

-compn


More information about the MPlayer-dev-eng mailing list