[Gambas-user] Re : Re: SHELL command problem

Stefano Palmeri rospolosco at ...152...
Fri Feb 8 10:14:42 CET 2008


Alle 07:44, venerdì 8 febbraio 2008, Mukul Khullar ha scritto:
> > Am trying to execute a command "aureport -f -i --summary --failed |
> > /root/Desktop/try" which works really fine on the terminal and creates an
> > image file on the root directory.
> > But, when I try to execute the same using SHELL "aureport -f -i --summary
> > --failed | /root/Desktop/try", the file gets generated but
> > incorrectly(something like an empty text file). Is there some tweak or
>
> some
>
> > way by which I can get this command running, using the SHELL command ?
> >
> > Please help..
> > Thanking you,
> > Mukul Khullar.
> >
> >>Try to put a WAIT at the end of the SHELL sentence.
> >>
> >>SHELL "aureport -f -i --summary --failed | /root/Desktop/try" WAIT
> >>
> >>Stefano
>
>  I have already tried the same command adding WAIT but in vain. Actually,
> the first part of the command sends some data to the 2nd part of the
> command through the " | " operator, which is not happening via the SHELL
> command, but happens fine when executed on the terminal. Any suggestions ??
> Thanks,
> Mukul Khullar.

Try this:

SHELL "aureport -f -i --summary --failed 2>&1 | /root/Desktop/try" WAIT

Stefano

> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> 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