Re: capturing output of a shell comand

2003-10-28 Thread Rob Dixon
Pawan wrote: > I have been trying to capture the output of a shell command (say > ls or echo *) in a variable but all i have been able to capture > is the return status of system comman which is 0. > > I also tried changing the defaulT output handler from STDOUT to > the filehandle of a file I hav

capturing output of a shell comand

2003-10-28 Thread BetaGamma
Hi everyone I have been trying to capture the output of a shell command (say ls or echo *) in a variable but all i have been able to capture is the return status of system comman which is 0. I also tried changing the default output handler from STDOUT to the filehandle of a file I have crea