<?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: Time Output in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/time-output/m-p/3230524#M171978</link>
    <description>Hi Chin,&lt;BR /&gt;&lt;BR /&gt;Please check this link:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=78306" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=78306&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;hth.</description>
    <pubDate>Fri, 26 Mar 2004 00:07:47 GMT</pubDate>
    <dc:creator>Sanjiv Sharma_1</dc:creator>
    <dc:date>2004-03-26T00:07:47Z</dc:date>
    <item>
      <title>Time Output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-output/m-p/3230522#M171976</link>
      <description>This is boggling, any explanation would be much appreciated.&lt;BR /&gt;&lt;BR /&gt;On a server, running the following:&lt;BR /&gt;&lt;BR /&gt;# ssh username@hostA "env | grep TZ"&lt;BR /&gt;&lt;BR /&gt;... produces no result, yet:&lt;BR /&gt;&lt;BR /&gt;# ssh username@hostA "echo $TZ"&lt;BR /&gt;&lt;BR /&gt;gives the timezone. How can the TZ variable be set and yet not reflected in "env"?</description>
      <pubDate>Thu, 25 Mar 2004 23:25:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-output/m-p/3230522#M171976</guid>
      <dc:creator>Chin Jin Kiat</dc:creator>
      <dc:date>2004-03-25T23:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Time Output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-output/m-p/3230523#M171977</link>
      <description>I not an expert on this aspect.&lt;BR /&gt;&lt;BR /&gt;Try this though:&lt;BR /&gt;&lt;BR /&gt;Try loading the environment in the command line&lt;BR /&gt;&lt;BR /&gt;ssh username@hostA "./etc/profile;.$HOME/.profile;env | grep TZ"&lt;BR /&gt;&lt;BR /&gt;I'm interested in the result. Seeme the environment appears not fuly loaded&lt;BR /&gt;I've had to do environment loads prior to running scripts in ssh mode. There may be a command line option to force the load. I'm checking.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 25 Mar 2004 23:32:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-output/m-p/3230523#M171977</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-25T23:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Time Output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-output/m-p/3230524#M171978</link>
      <description>Hi Chin,&lt;BR /&gt;&lt;BR /&gt;Please check this link:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=78306" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=78306&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Fri, 26 Mar 2004 00:07:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-output/m-p/3230524#M171978</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2004-03-26T00:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Time Output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-output/m-p/3230525#M171979</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks so far but it didn't help situation.&lt;BR /&gt;&lt;BR /&gt;To further elaborate:&lt;BR /&gt;&lt;BR /&gt;1. Both commands essentially does a ssh connection to "hostA" and runs the command "env| grep TZ" and "echo $TZ".&lt;BR /&gt;&lt;BR /&gt;2. Now, if TZ was not set in one case, as shown by "env | grep TZ", it should not show not show up in the 2nd command either via "echo $TZ". Which is the bit which I have no explanation for.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Mar 2004 02:57:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-output/m-p/3230525#M171979</guid>
      <dc:creator>Chin Jin Kiat</dc:creator>
      <dc:date>2004-03-26T02:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Time Output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-output/m-p/3230526#M171980</link>
      <description>Stev,&lt;BR /&gt;&lt;BR /&gt;Your suggestions gave me further ideas for testing.&lt;BR /&gt;&lt;BR /&gt;# ssh username@hostA ". /etc/profile;. $HOME/.profile;env | grep TZ"&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Shows TZ in "env".&lt;BR /&gt;&lt;BR /&gt;ssh username@hostA ". $HOME/.profile;env | grep TZ"&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; TZ setting in "env" is gone.&lt;BR /&gt;&lt;BR /&gt;Still probing, thanks for all help so far.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Mar 2004 03:11:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-output/m-p/3230526#M171980</guid>
      <dc:creator>Chin Jin Kiat</dc:creator>
      <dc:date>2004-03-26T03:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Time Output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-output/m-p/3230527#M171981</link>
      <description>The answer to your question is:&lt;BR /&gt;&lt;BR /&gt;A variable only is listed by 'env' command when that variable has been exported. For instance, see carefully the two next examples:&lt;BR /&gt;&lt;BR /&gt;# first example. Output is empty&lt;BR /&gt;HPHPHP=hello&lt;BR /&gt;env | grep '^HPHPHP'&lt;BR /&gt;&lt;BR /&gt;# second example. Output is&lt;BR /&gt;export HPHPHP=hello&lt;BR /&gt;env | grep '^HPHPHP'&lt;BR /&gt;HPHPHP=hello&lt;BR /&gt;&lt;BR /&gt;Other issue is what your second command line prints a TZ value. This is due because that value is not from 'hostA', but from the computer you launch the ssh command (let's call it 'myhost'). Before running the ssh, shell running in 'myhost' substitutes "$TZ" for its value, then (for instace TZ variables contains the value UTC),the command executed is:&lt;BR /&gt;&lt;BR /&gt;# ssh username@hostA "echo UTC"&lt;BR /&gt;&lt;BR /&gt;To see the value of TZ variable in hostA you should use single quotes instead:&lt;BR /&gt;&lt;BR /&gt;# ssh username@hostA 'echo $TZ'&lt;BR /&gt;&lt;BR /&gt;I hope this be useful.&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Mar 2004 03:17:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-output/m-p/3230527#M171981</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2004-03-26T03:17:45Z</dc:date>
    </item>
  </channel>
</rss>

