Uhmmm... Ok, Tobias.

Thanks
vuott



--- Mar 2/10/12, Tobias Boege <[email protected]> ha scritto:

> Da: Tobias Boege <[email protected]>
> Oggetto: Re: [Gambas-user] " ls > /dev/pts/0 "  by Exec.....
> A: "mailing list for gambas users" <[email protected]>
> Data: Martedì 2 ottobre 2012, 16:54
> On Tue, 02 Oct 2012, Ru Vuott wrote:
> > Hello,
> > 
> > I'ld like launch this line "ls > /dev/pts/0" by
> "Exec".
> > 
> > If I write:
> > 
> >    Exec ["ls", ">", "/dev/pts/0" ]
> > 
> > it returns an error. It says I cannot access to > :
> file or directory not found.
> > 
> > Idem, if I launch:
> > 
> >    Exec ["ls", "> /dev/pts/0" ]
> > 
> > 
> > And, if I use:
> > 
> >    Exec ["ls >", /dev/pts/0" ]
> > 
> > The error message says: cannot run child process:
> cannot exec program.
> > 
> > I just can not figure out how to !
> > 
> > Regards
> > vuott
> 
> The redirection via > and friends is a feature of your
> shell. If you want to
> use it you have to employ the SHELL instruction, not EXEC,
> which uses
> execve(3) or some variant directly.
> 
> Regards,
> Tobi
> 
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy
> New Relic APM
> Deploy New Relic app performance management and know
> exactly
> what is happening inside your Ruby, Python, PHP, Java, and
> .NET app
> Try New Relic at no cost today and get our sweet Data Nerd
> shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> Gambas-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to