LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to tell if a file is outputing to STDOUT or STDERR? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-tell-if-a-file-is-outputing-to-stdout-or-stderr-726121/)

xskycamefalling 05-14-2009 10:46 PM

how to tell if a file is outputing to STDOUT or STDERR?
 
hi im wondering about STDOUT or STDERR i have a file that outputs to the scren but i want to know if its STDOUT or STDERR..

thanks

John VV 05-14-2009 11:05 PM

???
program option1 opiton2 > filename.txt

chrism01 05-14-2009 11:13 PM

program 1>stdout.log 2>stderr.log

then examine the logs

xskycamefalling 05-14-2009 11:27 PM

program 1>stdout.log 2>stderr.log

then examine the logs


when i do this i get the following error


-bash: stdout.log: Permission denied

xskycamefalling 05-14-2009 11:30 PM

when i cat stderr.log i get
-bash: mystery: command not found

chrism01 05-15-2009 12:52 AM

For the first error it looks like your disk is read only.
I think we need more details.

What exactly is the cmd you are issuing?
Show the ownerships/perms ie 'ls -l'

What distro & version?

Show contents of /etc/mtab & say which disk you are on.
Which user are you running it as?


All times are GMT -5. The time now is 09:09 PM.