<?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 Valuating remote values ... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/valuating-remote-values/m-p/4014789#M299266</link>
    <description>Hi ..&lt;BR /&gt;how can i to valuate remote answers, i mean, i'm valuating the following:&lt;BR /&gt; &lt;BR /&gt;   if [[ ! -s `remsh $ip_test_server_atlun31 "uname -a;/usr/bin/ls /interface/${a}/${z}"` ]] ; then   &lt;BR /&gt;        remsh $ip_test_server_atlun31 "uname -a;/usr/bin/mkdir /interface/${a}/${z}"&lt;BR /&gt;    fi&lt;BR /&gt;&lt;BR /&gt;if i do above written , can i know if the remote folder exist?&lt;BR /&gt;&lt;BR /&gt;i run that and i could system could not work well because answer to me that directories already exist ...&lt;BR /&gt;&lt;BR /&gt;mkdir: cannot create /interface/AM/LOG: File exists&lt;BR /&gt;&lt;BR /&gt;please let me know.&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
    <pubDate>Wed, 06 Jun 2007 17:24:16 GMT</pubDate>
    <dc:creator>Manuales</dc:creator>
    <dc:date>2007-06-06T17:24:16Z</dc:date>
    <item>
      <title>Valuating remote values ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/valuating-remote-values/m-p/4014789#M299266</link>
      <description>Hi ..&lt;BR /&gt;how can i to valuate remote answers, i mean, i'm valuating the following:&lt;BR /&gt; &lt;BR /&gt;   if [[ ! -s `remsh $ip_test_server_atlun31 "uname -a;/usr/bin/ls /interface/${a}/${z}"` ]] ; then   &lt;BR /&gt;        remsh $ip_test_server_atlun31 "uname -a;/usr/bin/mkdir /interface/${a}/${z}"&lt;BR /&gt;    fi&lt;BR /&gt;&lt;BR /&gt;if i do above written , can i know if the remote folder exist?&lt;BR /&gt;&lt;BR /&gt;i run that and i could system could not work well because answer to me that directories already exist ...&lt;BR /&gt;&lt;BR /&gt;mkdir: cannot create /interface/AM/LOG: File exists&lt;BR /&gt;&lt;BR /&gt;please let me know.&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jun 2007 17:24:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/valuating-remote-values/m-p/4014789#M299266</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2007-06-06T17:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Valuating remote values ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/valuating-remote-values/m-p/4014790#M299267</link>
      <description>if I correctly understand what you are trying to do, your syntax that starts with:&lt;BR /&gt;&lt;BR /&gt;if [[ ! -s `remsh ...&lt;BR /&gt;&lt;BR /&gt;is trying to use the local shell's -s Conditional Expression operator to test the existence of the file (or directory)...&lt;BR /&gt;&lt;BR /&gt;but it won't work that way. It is going to test for a file on the local system, I guess a file with the name(s) if any returned by the remsh uname and ls commands. But then if your if statement evaluates you're trying to run a mkdir command to  create a directory on the remote system.&lt;BR /&gt;&lt;BR /&gt;You need a different approach...&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jun 2007 18:18:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/valuating-remote-values/m-p/4014790#M299267</guid>
      <dc:creator>John Kittel</dc:creator>
      <dc:date>2007-06-06T18:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Valuating remote values ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/valuating-remote-values/m-p/4014791#M299268</link>
      <description>Hi Manuales:&lt;BR /&gt;&lt;BR /&gt;Collect the return status of your test for the presence of a directory on the remote server in a _local_ file.  Then read the local file and examine the return code from the test made on the remote server.  For example:&lt;BR /&gt;&lt;BR /&gt;remsh somehost -n '[ -d /somehost_dir ];echo $?' &amp;gt; /tmp/result&lt;BR /&gt;&lt;BR /&gt;[ "$(&amp;lt; /tmp/result)" != 0 ] &amp;amp;&amp;amp; echo "dir is absent" || echo "dir is present"&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 06 Jun 2007 20:03:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/valuating-remote-values/m-p/4014791#M299268</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-06-06T20:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Valuating remote values ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/valuating-remote-values/m-p/4014792#M299269</link>
      <description>James, thanks a lot !!!&lt;BR /&gt;you know i did the following:&lt;BR /&gt;&lt;BR /&gt;     v=`remsh $ip_test_server_atlun31 "uname -a;/usr/bin/ls -d /interface/${a}/${z}" | grep -v HP-UX`&lt;BR /&gt;     if [[ $v != "/interface/${a}/${z}" ]]; then&lt;BR /&gt;        remsh $ip_test_server_atlun31 "uname -a;/usr/bin/mkdir /interface/${a}/${z}"&lt;BR /&gt;     fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;any way i have learnt other way for doing it .. the way that you have told me !!!&lt;BR /&gt;&lt;BR /&gt;:0) .... thanks.</description>
      <pubDate>Wed, 06 Jun 2007 20:19:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/valuating-remote-values/m-p/4014792#M299269</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2007-06-06T20:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Valuating remote values ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/valuating-remote-values/m-p/4014793#M299270</link>
      <description>If you are doing something complicated, you might run the script on the remote machine and only send a completion status back.&lt;BR /&gt;&lt;BR /&gt;In the above case, you would pass in $a and $z to your remote script and it would do the mkdir.&lt;BR /&gt;&lt;BR /&gt;Or better yet, just do mkdir -p, and you don't care if it already exists.</description>
      <pubDate>Thu, 07 Jun 2007 00:02:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/valuating-remote-values/m-p/4014793#M299270</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-06-07T00:02:13Z</dc:date>
    </item>
  </channel>
</rss>

