[Gambas-user] SHELL syntax not as advertised???
Pablo Vera
pvera at ...729...
Thu Feb 2 19:40:43 CET 2006
Your example says:
SHELL "..." FOR READ WRITE AS video
but I don't see the word FOR in this description:
SHELL "<cmd>[ <args>]" ( READ | WRITE | READ WRITE ) AS <var>
and I am not sure about the parenthesis, so maybe it should be like this:
SHELL "..." (READ WRITE) AS video
or
SHELL "..." READ WRITE AS video
Saludos,
Pablo Vera
Christopher Brian Jack wrote:
> I'm bad for forgetting subject topics :(
>
> The documentation seems off for the SHELL command:
>
> As per the offline docs in 1.9.23:
> SHELL "<cmd>[ <args>]" ( READ | WRITE | READ WRITE ) AS <var>
>
> When trying the line:
>
> ...
> 16: PRIVATE video AS Process
> ...
> 'MainScreen is the name of a Form
> 285: SHELL "mplayer -wid " & Str(MainScreen.handle) & " -slave -noconsolecontrols -nojoystick -nolirc -nomouseinput" FOR READ WRITE AS video
>
> I get the error:
> Unexpected AS in Line 125 of Intro.module
>
> So what is the correct way to use shell to drive a console command
>
> On another note mplayer seems not to like what the handle property is
> giving back as an ID ([BadWindow] is XLib's complaint).
>
> .=================================================.
> | Christopher BRIAN Jack aka "Gau of the Veldt" |
> `================================================='
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
More information about the User
mailing list