[Gambas-user] Re : Re: SHELL command problem
rolf
rolf.frogs at ...221...
Fri Feb 8 10:55:38 CET 2008
Hi Mukul
:
> > 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
> >>Try to put a WAIT at the end of the SHELL sentence.
> >>
> >>SHELL "aureport -f -i --summary --failed | /root/Desktop/try" WAIT
>
> 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 ??
Usually subshells in Linux did not have the PATH-variable set (correctly). So
try to use absolut pathes for your commands, like:
/usr/bin/aureport -f -i --summary --failed | /root/Desktop/try
Fine regards
rolf
More information about the User
mailing list