> not writing output to file
Dear All, Kindly help in debugging an issue where in my server using the > operator does not write output to file, although it shows output in putty.
Server SunOS 5.10 Thanks |
Could you tell us more? You provided very little information for us to work with, but I will try to help.
The > operator will redirect the normal output (stdout) to a file, but not error messages (stderr). If you wish to output both stdout and stderr to a file, use the 2> operator, or &> if your system has it: Code:
# redirect stdout but not stderr: Code:
# (see above comments) |
Thank you for your time, Beryllos. I have tried the following
Code:
ls >output.txt Quote:
|
Quote:
|
Quote:
Code:
nohup ls >output.txt 2>output.err |
is READGFILE a long process? The output to output.txt and output.err will be buffered, which means you might not see anything for some time, depending on how quickly READGFILE is printing it out.
|
All times are GMT -5. The time now is 07:39 PM. |