Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 523
  • Last Modified:

how to find what is printed to the UNIX STDOUT

Hello,

how to find what is printed to the UNIX STDOUT?

Thanks
0
bibi92
Asked:
bibi92
  • 2
  • 2
  • 2
  • +1
1 Solution
 
ozoCommented:
> stdout.log
0
 
Patrick BogersDatacenter platform engineer LindowsCommented:
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
 
bibi92Author Commented:
yes, I want to know what has been printed to the stdout
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
bibi92Author Commented:
cat: 0652-050 Cannot open /dev/stdout.
cat: 0652-050 Cannot open -less.
0
 
ozoCommented:
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
 
Patrick BogersDatacenter platform engineer LindowsCommented:
If you cannot open the file you probably have no forwarder in place and then standard output is printed to the screen.
0
 
SurranoSystem EngineerCommented:
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

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now