<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Redirection Help in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687037#M102995</link>
    <description>Duplicate post is not needed.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=981717" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=981717&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Sanjay</description>
    <pubDate>Wed, 07 Dec 2005 17:43:08 GMT</pubDate>
    <dc:creator>Sanjay_6</dc:creator>
    <dc:date>2005-12-07T17:43:08Z</dc:date>
    <item>
      <title>Redirection Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687036#M102994</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;I am running one program it gives me output on the console ( which has my debugging statement on my code ) Like follow&lt;BR /&gt;&lt;BR /&gt;Trying...&lt;BR /&gt;Connected to dhn1b203.dev.cingular.net.&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;Connection closed by foreign host.&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- BatchEnd ---&amp;gt;&lt;BR /&gt;[07/12/2005 : 14:22.43.976368174] (3): :: Moving File&lt;BR /&gt;--- moveComplete ---&amp;gt;&lt;BR /&gt;[07/12/2005 : 14:22.43.976368174] (3): :: Move script successful&lt;BR /&gt;[07/12/2005 : 14:22.43.976368174] (3): :: Parsing file&lt;BR /&gt;[07/12/2005 : 14:22.43.976368174] (3): :: Parse script returned, no files to process&lt;BR /&gt;&lt;BR /&gt;I tried to redirect all this into a file. But i could not&lt;BR /&gt;&lt;BR /&gt;I Tried&lt;BR /&gt;&lt;BR /&gt;/home/raj/bin/&amp;gt;execute nor13cw &amp;gt; raj.txt 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;execute nor13cw is my program&lt;BR /&gt;&lt;BR /&gt;But the output file (raj.txt) only has &lt;BR /&gt;&lt;BR /&gt;Trying...&lt;BR /&gt;Connected to dhn1b203.dev.cingular.net.&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;Connection closed by foreign host.&lt;BR /&gt;&lt;BR /&gt;The remaining below stuff is not in the raj.txt&lt;BR /&gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- BatchEnd ---&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I can not redirect the debugging statements on the cosole to a file ? :(&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;-raj..</description>
      <pubDate>Wed, 07 Dec 2005 17:38:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687036#M102994</guid>
      <dc:creator>RajM_1</dc:creator>
      <dc:date>2005-12-07T17:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687037#M102995</link>
      <description>Duplicate post is not needed.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=981717" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=981717&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Sanjay</description>
      <pubDate>Wed, 07 Dec 2005 17:43:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687037#M102995</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2005-12-07T17:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687038#M102996</link>
      <description>Hi Raj:&lt;BR /&gt;&lt;BR /&gt;# ./yourscript &amp;gt; logfile 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;See the man pages for 'sh-posix'.&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Dec 2005 17:44:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687038#M102996</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-12-07T17:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687039#M102997</link>
      <description>Thanks JRF.&lt;BR /&gt;&lt;BR /&gt;Sanjay can you please give me the solution rather than telling something. I am new to posting, sorry if reposting matters.</description>
      <pubDate>Wed, 07 Dec 2005 17:55:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687039#M102997</guid>
      <dc:creator>RajM_1</dc:creator>
      <dc:date>2005-12-07T17:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687040#M102998</link>
      <description>Raj,&lt;BR /&gt;&lt;BR /&gt;when you are talking about "console" are referring to the terminal window on your workstation or the actual, physical console of the server ? Because, if it is the server console, the Event lines you see, may be fed by a the syslogd and does not belong to neither the STDOUT nor the STDERR devices, in which case, not being able to capture them by redirection, would not be surprising. Otherwise, i.e., if this is a regular terminal session giving you this trouble, executing the command like James described in his post above, should take care of the problem.&lt;BR /&gt;&lt;BR /&gt;Hope this helps</description>
      <pubDate>Wed, 07 Dec 2005 21:02:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687040#M102998</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-12-07T21:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687041#M102999</link>
      <description>Thanks to you mel .Sorry ... the "console" i was referring to the terminal window .&lt;BR /&gt;&lt;BR /&gt;I tried james idea i could not figure out the solution yet.</description>
      <pubDate>Wed, 07 Dec 2005 21:13:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687041#M102999</guid>
      <dc:creator>RajM_1</dc:creator>
      <dc:date>2005-12-07T21:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687042#M103000</link>
      <description>is this nor13cw a script or a compiled c code or something like that ? If it is a script, it would be beneficial if you can attach that one to a message here. Otherwise, you need to tell us what this program is doing in general as the lines saying &lt;BR /&gt;&lt;BR /&gt;--- Event ---&amp;gt;&lt;BR /&gt;--- BatchEnd ---&amp;gt;&lt;BR /&gt;[07/12/2005 : 14:22.43.976368174] (3): :: Moving File&lt;BR /&gt;--- moveComplete ---&amp;gt;&lt;BR /&gt;[07/12/2005 : 14:22.43.976368174] (3): :: Move script successful&lt;BR /&gt;[07/12/2005 : 14:22.43.976368174] (3): :: Parsing file&lt;BR /&gt;[07/12/2005 : 14:22.43.976368174] (3): :: Parse script returned, no files to process&lt;BR /&gt;&lt;BR /&gt;is not of much help to figure it out.</description>
      <pubDate>Wed, 07 Dec 2005 21:31:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687042#M103000</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-12-07T21:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687043#M103001</link>
      <description>Hey Mel, You are almost right nor13cw is a C code with calls some proprietry script. &lt;BR /&gt;I have a debugging statements in the script. I have debugging stmts just to understand the flow of the system.&lt;BR /&gt;You see this below ? Those are all the debug statements in the program.&lt;BR /&gt;&lt;BR /&gt;--Event---&amp;gt; &lt;BR /&gt;--- BatchEnd ---&amp;gt;&lt;BR /&gt;[07/12/2005 : 14:22.43.976368174] (3): :: Moving File&lt;BR /&gt;--- moveComplete ---&amp;gt;&lt;BR /&gt;&lt;BR /&gt;When i run "execute nor13cw" from the command prompt, it start executing the c &amp;amp; the scripts, started executing my code where i have my debug statements. I want to redirect these into a file so i can see what is the flow of the code etc.,&lt;BR /&gt;&lt;BR /&gt;But i could not able to capture those logs. Its keep running on the terminal. so its hard for me to see what is going on there. Tried to redirect using like "home/raj/bin/&amp;gt;execute nor13cw &amp;gt; raj.txt 2&amp;gt;&amp;amp;1" .. but still i am not ableto capture the logs.&lt;BR /&gt;&lt;BR /&gt;Please let know if you need any information. I am also trying some other things. If i come across the solution i will post &lt;BR /&gt;</description>
      <pubDate>Wed, 07 Dec 2005 22:06:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687043#M103001</guid>
      <dc:creator>RajM_1</dc:creator>
      <dc:date>2005-12-07T22:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687044#M103002</link>
      <description>Raj,&lt;BR /&gt;&lt;BR /&gt;Looks like the scripts which are called from this compiled program are generating the output that you are unable to capture, hence stuff you see are not actually the STDOUT of the nor13cw, hence no chance to capture. &lt;BR /&gt;&lt;BR /&gt;best way I can suggest is to start a screen capture session before you run it and when finished, exit the screen capture session and use typescript file as your log as follows&lt;BR /&gt;&lt;BR /&gt;# script; /home/raj/bin/nor13cw ; exit&lt;BR /&gt;your log and some more is in typescript file in the current directory.&lt;BR /&gt;&lt;BR /&gt;Hope this helps (a little)</description>
      <pubDate>Wed, 07 Dec 2005 22:16:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687044#M103002</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-12-07T22:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687045#M103003</link>
      <description>Try as,&lt;BR /&gt;&lt;BR /&gt;# ./yourscript | tee -a test.log 2&amp;gt;&amp;gt;test.log&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;# script&lt;BR /&gt;# ./yourscript&lt;BR /&gt;# exit&lt;BR /&gt;&lt;BR /&gt;will capture all execution and results of yourscript. Revert if it is not working.&lt;BR /&gt;&lt;BR /&gt;-Muthu</description>
      <pubDate>Thu, 08 Dec 2005 00:32:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687045#M103003</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-12-08T00:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687046#M103004</link>
      <description>I offer you not so much a solution but more of a band aid type work around.&lt;BR /&gt;&lt;BR /&gt;The C code, or the script interpreter or what ever could be posting those lines directly to the tty terminal instead of to stdout or stderr (why? I haven't a clue)&lt;BR /&gt;&lt;BR /&gt;However, you can stop and restart display of your terminal window by using &lt;CTRL&gt;q to stop the flow of data and then use &lt;CTRL&gt;s to restart the flow of data.&lt;BR /&gt;&lt;BR /&gt;That might be enough to let you examine the process enough to troubleshoot what ever the problem your having is.&lt;BR /&gt;&lt;/CTRL&gt;&lt;/CTRL&gt;</description>
      <pubDate>Thu, 08 Dec 2005 09:38:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687046#M103004</guid>
      <dc:creator>Howard Marshall</dc:creator>
      <dc:date>2005-12-08T09:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection Help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687047#M103005</link>
      <description>Thanks All . I tried Muthukumar idea &amp;amp; howard idea . But still the same. The logs keep running on the terminal &lt;BR /&gt;&lt;BR /&gt;Thanks anyway for the replies</description>
      <pubDate>Thu, 08 Dec 2005 18:08:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirection-help/m-p/3687047#M103005</guid>
      <dc:creator>RajM_1</dc:creator>
      <dc:date>2005-12-08T18:08:01Z</dc:date>
    </item>
  </channel>
</rss>

