Redirect output from system command to a file

2002-02-20 Thread slhgkh5
I am attempting to redirect the output from a system command to a file, however when I print it only goes to stdout and I get 0's in the file. The first loop works find the second is what is failing. I have even tried redirecting within the system function ( system " command > /home/file")

Re: Redirect output from system command to a file

2002-02-20 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > I am attempting to redirect the output from a system > command to a file, however when I print it only goes to You shouldn't be using system() for this, you should be using back-quotes or the qx() function. > stdout and I get 0's in the file. The first loop works