[Gambas-user] Help with SHELL and EXEC

Kari Laine klaine8 at ...626...
Fri Oct 10 12:52:03 CEST 2008


On Fri, Oct 10, 2008 at 2:15 AM, Laurent Carlier <lordheavym at ...626...>wrote:

> Le vendredi 10 octobre 2008 01:05:57 Kari Laine, vous avez écrit :
> > Hi,
> >
> > could someone please post an example how to use SHELL and EXEC so that
> > WRITE is used to write information to external program's input?
> >
> > I would be very great full. I have tried now four hours and can't get it
> > working.
> >
> > Best Regards
> > Kari Laine
>
> DIM myProc AS Process
> ...
> myProc = SHELL "mycommand" FOR WRITE
> ...
> PRINT #myProc,"Send this to mycommand input"
>
> see http://64.128.110.55/help/lang/shell
> http://64.128.110.55/help/lang/print?v3
> http://64.128.110.55/help/comp/gb/process?v3
>
> Thanks Laurent,

I can not still make it work. An example with both input and output
redirection would be highly appreciated.

Best Regards
Kari Laine



More information about the User mailing list