Solved

how to find what is printed to the UNIX STDOUT

Posted on 2014-01-18
7
515 Views
Last Modified: 2014-01-20
Hello,

how to find what is printed to the UNIX STDOUT?

Thanks
0
Comment
Question by:bibi92
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 39790867
> stdout.log
0
 
LVL 23

Accepted Solution

by:
Patrick Bogers earned 500 total points
ID: 39790872
Hi

Not totally confident i understand the question, you want to know what has been printed to the stdout?

A command like    cat /dev/stdout -less

Will show you its content. OR am i missing the issue here?
0
 

Author Comment

by:bibi92
ID: 39790928
yes, I want to know what has been printed to the stdout
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:bibi92
ID: 39790929
cat: 0652-050 Cannot open /dev/stdout.
cat: 0652-050 Cannot open -less.
0
 
LVL 84

Expert Comment

by:ozo
ID: 39790942
stdout will be what is printed on the screen.
If you want to see what was printer their earlier, scroll up.
If you want to capture what what a command prints, redirect it to a file or logger
command | tee command.log
0
 
LVL 23

Expert Comment

by:Patrick Bogers
ID: 39790981
If you cannot open the file you probably have no forwarder in place and then standard output is printed to the screen.
0
 
LVL 8

Expert Comment

by:Surrano
ID: 39793687
You can always check whichever process you want if you know the pid (e.g. $MYPID)

tail -f /proc/$MYPID/fd/1 # stdout
tail -f /proc/$MYPID/fd/2 # stderr

Open in new window


But it'll show only future output, not past output.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SSH commands for Nas4free 21 539
Python Assistance 7 96
Unix Script: Loop over all days of a month 17 129
ORA-00972: identifier is too long from Unix but not from Windows in SQLPLUS 17 119
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question