<?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: Message redirection in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/message-redirection/m-p/2848676#M92899</link>
    <description>sorry tee is not working</description>
    <pubDate>Wed, 20 Nov 2002 11:02:00 GMT</pubDate>
    <dc:creator>Chakravarthi</dc:creator>
    <dc:date>2002-11-20T11:02:00Z</dc:date>
    <item>
      <title>Message redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-redirection/m-p/2848673#M92896</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm running an application, it prints lot of printf statements on the terminal, i want to redirect all of the messages to a log file,&lt;BR /&gt;&lt;BR /&gt;i tried doing this using "command &amp;gt; lofile 2&amp;gt;&amp;amp;1", this doesnt work, but the same command works for all unix commands. Is there any other way  to capture the messages&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;chakri</description>
      <pubDate>Wed, 20 Nov 2002 10:29:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-redirection/m-p/2848673#M92896</guid>
      <dc:creator>Chakravarthi</dc:creator>
      <dc:date>2002-11-20T10:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Message redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-redirection/m-p/2848674#M92897</link>
      <description>You can do either&lt;BR /&gt;&lt;BR /&gt;command | tee -a logfile&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;script logfile&lt;BR /&gt;command&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The script option may be preferable, as this also captures any user keystrokes involved during the process.</description>
      <pubDate>Wed, 20 Nov 2002 10:37:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-redirection/m-p/2848674#M92897</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2002-11-20T10:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Message redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-redirection/m-p/2848675#M92898</link>
      <description>You can do:&lt;BR /&gt;&lt;BR /&gt;# script &lt;LOGFILENAME&gt;&lt;BR /&gt;&lt;BR /&gt;when you've finished you do a CTRL+D to end the log file. You can then cat, more, print or do whatever with the logfile.&lt;BR /&gt;&lt;BR /&gt;Chuck J&lt;/LOGFILENAME&gt;</description>
      <pubDate>Wed, 20 Nov 2002 10:54:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-redirection/m-p/2848675#M92898</guid>
      <dc:creator>Chuck J</dc:creator>
      <dc:date>2002-11-20T10:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Message redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-redirection/m-p/2848676#M92899</link>
      <description>sorry tee is not working</description>
      <pubDate>Wed, 20 Nov 2002 11:02:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-redirection/m-p/2848676#M92899</guid>
      <dc:creator>Chakravarthi</dc:creator>
      <dc:date>2002-11-20T11:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Message redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-redirection/m-p/2848677#M92900</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;tee is also working,, the program is a C program, with lot of printf statements, script works, but the problem with script is i can see the log only after closing the program,&lt;BR /&gt;&lt;BR /&gt;Is there anyway i can get the log messages without closing the application&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;chakri</description>
      <pubDate>Wed, 20 Nov 2002 11:02:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-redirection/m-p/2848677#M92900</guid>
      <dc:creator>Chakravarthi</dc:creator>
      <dc:date>2002-11-20T11:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Message redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-redirection/m-p/2848678#M92901</link>
      <description>Open a 2nd window and do a tail -f on your log file:&lt;BR /&gt;&lt;BR /&gt;# tail -f logfile&lt;BR /&gt;&lt;BR /&gt;This will update whenever the logfile gets written to.&lt;BR /&gt;&lt;BR /&gt;Don't forget to assign us points please :-)&lt;BR /&gt;&lt;BR /&gt;Chuck J</description>
      <pubDate>Wed, 20 Nov 2002 11:21:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-redirection/m-p/2848678#M92901</guid>
      <dc:creator>Chuck J</dc:creator>
      <dc:date>2002-11-20T11:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Message redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-redirection/m-p/2848679#M92902</link>
      <description>I'm trying this on linux machine, it is not saving the messages until i close the session,,,&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Nov 2002 11:26:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-redirection/m-p/2848679#M92902</guid>
      <dc:creator>Chakravarthi</dc:creator>
      <dc:date>2002-11-20T11:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Message redirection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/message-redirection/m-p/2848680#M92903</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Here's a guess as to why "this doesnt work, but the same command works for all unix commands".&lt;BR /&gt;&lt;BR /&gt;The application has redirected stdout to the tty device, effectively over-riding what you are attempting with "command &amp;gt;lofile 2&amp;gt;&amp;amp;1".&lt;BR /&gt;&lt;BR /&gt;Check with the application developer to see if that's the case.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Consider the following simple test...&lt;BR /&gt;&lt;BR /&gt;# cat script&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;echo first message&lt;BR /&gt;TTY=$(tty)&lt;BR /&gt;echo second message &amp;gt;$TTY&lt;BR /&gt;&lt;BR /&gt;# ./script&lt;BR /&gt;first message&lt;BR /&gt;second message&lt;BR /&gt;&lt;BR /&gt;# ll&lt;BR /&gt;total 2&lt;BR /&gt;-rwx------   1 root       sys             57 Nov 20 10:07 script&lt;BR /&gt;&lt;BR /&gt;# ./script &amp;gt;out &lt;BR /&gt;second message&lt;BR /&gt;&lt;BR /&gt;# ll&lt;BR /&gt;total 4&lt;BR /&gt;-rw-r--r--   1 root       sys             14 Nov 20 10:07 out&lt;BR /&gt;-rwx------   1 root       sys             57 Nov 20 10:07 script&lt;BR /&gt;&lt;BR /&gt;# cat out&lt;BR /&gt;first message&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Wed, 20 Nov 2002 15:16:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/message-redirection/m-p/2848680#M92903</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-11-20T15:16:53Z</dc:date>
    </item>
  </channel>
</rss>

