hpw can i see STDERR content?

Discussion in 'General' started by bono056, Feb 1, 2010.

  1. bono056

    Joined:
    Jan 19, 2010
    Messages:
    70
    Likes Received:
    0
    i wonder how can i see STDERR content? is it a file inside server that i can open it text editor? or just something like a session o variable? if it is how can i print it on CLI?
     
  2. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    It is indeed a file inside the server, but it is a "special" file that will normally output to the console in which the process is running, if you want to redirect stderr to a file add the following

    2> <somefilename>

    at the end of whatever you want to redirect

    ref:

    http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html
     
  3. bono056

    Joined:
    Jan 19, 2010
    Messages:
    70
    Likes Received:
    0
    when i should call this? after dialplan end?
    i run this command, but created file is empty.
     

Share This Page