[Gambas-user] " ls > /dev/pts/0 " by Exec.....

Ru Vuott vuott at ...325...
Tue Oct 2 17:19:43 CEST 2012


Uhmmm... Ok, Tobias.

Thanks
vuott



--- Mar 2/10/12, Tobias Boege <taboege at ...626...> ha scritto:

> Da: Tobias Boege <taboege at ...626...>
> Oggetto: Re: [Gambas-user] " ls > /dev/pts/0 "  by Exec.....
> A: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
> 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
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list