Solved

how to find what is printed to the UNIX STDOUT

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

how to find what is printed to the UNIX STDOUT?

Thanks
0
Comment
Question by:bibi92
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 84

Expert Comment

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

Accepted Solution

by:
Patricksr1972 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

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 19

Expert Comment

by:Patricksr1972
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now