<?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: run script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170941#M458017</link>
    <description>I mean the remote server is not owned by us , we do not hv permission to change anything. thx&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 22 Apr 2009 05:43:18 GMT</pubDate>
    <dc:creator>heaman1</dc:creator>
    <dc:date>2009-04-22T05:43:18Z</dc:date>
    <item>
      <title>run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170935#M458011</link>
      <description>I have two scripts ( eg. ftp_script 1 , ftp_script2 ) that use ftp to login a server ( eg. 192.168.0.3 ) to download file , I use .netrc to control the password , the user is no need to input login/password to server now ,&lt;BR /&gt;&lt;BR /&gt;however , ftp_script1 &amp;amp; ftp_script2 doing different things so I want to use different login/password when use these script ( eg. ftp_script1 use login ID: userA , password: passwordB while ftp_script2 use login ID: userB , password: passwordB ) , if I add these two login/password to .netrc , how to tell the script to use right login/password ? thx&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;machine 192.168.0.3 login userA passwd passwordA&lt;BR /&gt;machine 192.168.0.3 login userB passwd passwordB</description>
      <pubDate>Wed, 22 Apr 2009 01:10:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170935#M458011</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-04-22T01:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170936#M458012</link>
      <description>&amp;gt;I use .netrc to control the password&lt;BR /&gt;&amp;gt;I want to use different login/password when use these script&lt;BR /&gt;&lt;BR /&gt;I suppose you could use an IP alias for the machine so you can have different "machine" entries in your .netrc.&lt;BR /&gt;&lt;BR /&gt;Or you could change $HOME and point to different directories with the two .netrc files.</description>
      <pubDate>Wed, 22 Apr 2009 02:57:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170936#M458012</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-22T02:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170937#M458013</link>
      <description>Hi Heaman,&lt;BR /&gt;&lt;BR /&gt;Why don't you run these two scripts with two different local users? So that both users have it's own .netrc file. &lt;BR /&gt;&lt;BR /&gt;You can use userA in one .netrc file and userB in another .netrc file.&lt;BR /&gt;&lt;BR /&gt;The other option is, as Dennis said, you could use if the server has another virtual ip.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Apr 2009 03:57:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170937#M458013</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-04-22T03:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170938#M458014</link>
      <description>thx replies ,&lt;BR /&gt;&lt;BR /&gt;You suggested use IP alias , virtual IP , can give the advice how to do it ? thx</description>
      <pubDate>Wed, 22 Apr 2009 05:09:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170938#M458014</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-04-22T05:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170939#M458015</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You first check if the remote server has virtual ip or not using netstat -in command.&lt;BR /&gt;&lt;BR /&gt;If it does not have, then you can configure virtual ip on the same interface. Use sam and add logical interface option in the network configuration.</description>
      <pubDate>Wed, 22 Apr 2009 05:22:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170939#M458015</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-04-22T05:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170940#M458016</link>
      <description>thx replie ,&lt;BR /&gt;&lt;BR /&gt;the remote is not owned by us , we can't change anything , is there any other method ? thx</description>
      <pubDate>Wed, 22 Apr 2009 05:28:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170940#M458016</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-04-22T05:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170941#M458017</link>
      <description>I mean the remote server is not owned by us , we do not hv permission to change anything. thx&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Apr 2009 05:43:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170941#M458017</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-04-22T05:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170942#M458018</link>
      <description>Hi Heaman1,&lt;BR /&gt;&lt;BR /&gt;In that case try this. Hopefully it should work.&lt;BR /&gt;&lt;BR /&gt;1.Add a host entry in your local /etc/hosts file for 192.168.0.3 like below&lt;BR /&gt;&lt;BR /&gt;192.168.0.3  ftpserver&lt;BR /&gt;&lt;BR /&gt;2.Next modify your .netrc file like this.&lt;BR /&gt;&lt;BR /&gt;machine 192.168.0.3 login userA passwd passwordA&lt;BR /&gt;machine ftpserver login userB passwd passwordB&lt;BR /&gt;&lt;BR /&gt;3.In your second script modify all the ipaddress with hostname ftpserver. Now, when the first script runs it will refer the first entry in your .netrc file. When the second script runs it will refer the second entry in your .netrc file.&lt;BR /&gt;&lt;BR /&gt;But you should understand one thing that, when first script runs it is going to login to userA home directory and fetch the file. Same way, when second script  runs it is going to login to userB home directory and fetch the file. You should make sure that the files are available on respective directories.&lt;BR /&gt;&lt;BR /&gt;Hope this helps you. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Apr 2009 08:18:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170942#M458018</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-04-22T08:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170943#M458019</link>
      <description>Hi Heaman,&lt;BR /&gt;&lt;BR /&gt;Any update on this? Have you tried and tested?</description>
      <pubDate>Wed, 22 Apr 2009 12:08:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170943#M458019</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-04-22T12:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170944#M458020</link>
      <description>thx Ganesan R ,&lt;BR /&gt;&lt;BR /&gt;it works , really excellent and fantastic solution .</description>
      <pubDate>Thu, 23 Apr 2009 05:59:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170944#M458020</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-04-23T05:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170945#M458021</link>
      <description>thx</description>
      <pubDate>Thu, 23 Apr 2009 06:00:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script/m-p/5170945#M458021</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-04-23T06:00:09Z</dc:date>
    </item>
  </channel>
</rss>

