<?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: Need Shell Script Help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498355#M846293</link>
    <description>What do you want rlogin to do? Do you want to execute test1.env and test1.sh on the remote host? If so it's not the way to do it. rlogin just waits for input from stdin, it's interactive program. &lt;BR /&gt;&lt;BR /&gt;I believe you need remsh or if you have ssh use ssh.&lt;BR /&gt;&lt;BR /&gt;If I understood you right, on the remote box you must create .rhosts file in the user home directory and write there the ip and the user that can execute the commands, then you can use remsh without getting adked about password.&lt;BR /&gt;&lt;BR /&gt;For example, you have two hosts:&lt;BR /&gt;111.111.111.111&lt;BR /&gt;111.111.111.222&lt;BR /&gt;&lt;BR /&gt;you want user alex to execute scripts on the remote box with user danny.&lt;BR /&gt;Login into remote box and in the home directory of danny create file .rhosts and put in it:&lt;BR /&gt;111.111.111.111 alex&lt;BR /&gt;&lt;BR /&gt;Now on 111.111.111.111 you can do:&lt;BR /&gt;remsh -l danny 111.111.111.222 "ls -l /tmp"&lt;BR /&gt;&lt;BR /&gt;(usage: remsh -l &lt;USER&gt; &lt;HOST&gt; &lt;COMMAND&gt;)&lt;BR /&gt;&lt;BR /&gt;For more details you can man remsh. &lt;BR /&gt;But I suggest to use ssh. Easier and secure.&lt;/COMMAND&gt;&lt;/HOST&gt;&lt;/USER&gt;</description>
    <pubDate>Sat, 05 Mar 2005 16:00:06 GMT</pubDate>
    <dc:creator>Alex Lavrov.</dc:creator>
    <dc:date>2005-03-05T16:00:06Z</dc:date>
    <item>
      <title>Need Shell Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498354#M846292</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need some Shell Script Help. I want to have a shell script on one m/c, whose contents will be as follows:&lt;BR /&gt;&lt;BR /&gt;# -- M/c1 scripts&lt;BR /&gt;./&lt;PATH_NAME&gt;/test.env&lt;BR /&gt;./&lt;PATH_NAME&gt;/test1.sh&lt;BR /&gt;rlogin M/c2&lt;BR /&gt;./&lt;PATH_NAME&gt;/test1.env&lt;BR /&gt;./PATH_NAME&amp;gt;/test1.sh&lt;BR /&gt;exit&lt;BR /&gt;-- Comback to M/c1 and execute some more scripts&lt;BR /&gt;When I am trying to execute a test scripts, It comes till rlogin m/c2. But stays at the prompt. does not proceed to the next setup commands.&lt;BR /&gt;&lt;BR /&gt;Am I missing something?&lt;BR /&gt;&lt;BR /&gt;Please help me in writing a shell script and finding some good site about learning Shell Scripts.&lt;BR /&gt;&lt;/PATH_NAME&gt;&lt;/PATH_NAME&gt;&lt;/PATH_NAME&gt;</description>
      <pubDate>Sat, 05 Mar 2005 15:49:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498354#M846292</guid>
      <dc:creator>Ashok_20</dc:creator>
      <dc:date>2005-03-05T15:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need Shell Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498355#M846293</link>
      <description>What do you want rlogin to do? Do you want to execute test1.env and test1.sh on the remote host? If so it's not the way to do it. rlogin just waits for input from stdin, it's interactive program. &lt;BR /&gt;&lt;BR /&gt;I believe you need remsh or if you have ssh use ssh.&lt;BR /&gt;&lt;BR /&gt;If I understood you right, on the remote box you must create .rhosts file in the user home directory and write there the ip and the user that can execute the commands, then you can use remsh without getting adked about password.&lt;BR /&gt;&lt;BR /&gt;For example, you have two hosts:&lt;BR /&gt;111.111.111.111&lt;BR /&gt;111.111.111.222&lt;BR /&gt;&lt;BR /&gt;you want user alex to execute scripts on the remote box with user danny.&lt;BR /&gt;Login into remote box and in the home directory of danny create file .rhosts and put in it:&lt;BR /&gt;111.111.111.111 alex&lt;BR /&gt;&lt;BR /&gt;Now on 111.111.111.111 you can do:&lt;BR /&gt;remsh -l danny 111.111.111.222 "ls -l /tmp"&lt;BR /&gt;&lt;BR /&gt;(usage: remsh -l &lt;USER&gt; &lt;HOST&gt; &lt;COMMAND&gt;)&lt;BR /&gt;&lt;BR /&gt;For more details you can man remsh. &lt;BR /&gt;But I suggest to use ssh. Easier and secure.&lt;/COMMAND&gt;&lt;/HOST&gt;&lt;/USER&gt;</description>
      <pubDate>Sat, 05 Mar 2005 16:00:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498355#M846293</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-03-05T16:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need Shell Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498356#M846294</link>
      <description>3 host sollution with ssh!&lt;BR /&gt;Install keys for ssh on node 2 and 3 the client servers :-)&lt;BR /&gt;&lt;BR /&gt;host1 (master script host):&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;scp ./&lt;PATH_NAME&gt;/test.env user@host2:./&lt;PATH_NAME&gt;/&lt;BR /&gt;scp ./&lt;PATH_NAME&gt;/test.env user@host3:./&lt;PATH_NAME&gt;/&lt;BR /&gt;ssh user@host2 -c "./&lt;PATH_NAME&gt;/test.env"&lt;BR /&gt;ssh user@host3 -c "./&lt;PATH_NAME&gt;/test.env"&lt;BR /&gt;ssh user@host2 -c "rm ./&lt;PATH_NAME&gt;/test.env"&lt;BR /&gt;ssh user@host3 -c "rm ./&lt;PATH_NAME&gt;/test.env"&lt;BR /&gt;&lt;BR /&gt;You could put the commands together with a ';' as sepperation, but for the ex. this is better.&lt;BR /&gt;&lt;BR /&gt;Hope it helps!&lt;BR /&gt;&lt;/PATH_NAME&gt;&lt;/PATH_NAME&gt;&lt;/PATH_NAME&gt;&lt;/PATH_NAME&gt;&lt;/PATH_NAME&gt;&lt;/PATH_NAME&gt;&lt;/PATH_NAME&gt;&lt;/PATH_NAME&gt;</description>
      <pubDate>Sat, 05 Mar 2005 18:10:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498356#M846294</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2005-03-05T18:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need Shell Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498357#M846295</link>
      <description>rlogin is the problem. It is an interactive command so the shell script can't proceed. If you need to run remote commands, use remsh or if you have ssh imstalled, it is much preferred ove remsh.</description>
      <pubDate>Sat, 05 Mar 2005 20:19:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498357#M846295</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-03-05T20:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need Shell Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498358#M846296</link>
      <description>Sir, &lt;BR /&gt;&lt;BR /&gt;Thanks for Your Reply. I tried using the following Command and get the following error.&lt;BR /&gt;&lt;BR /&gt;ssh applmgr@bdfdb2 -c '. /oracle/FAHRIS/fahrisora/8.0.6/FAHRIS_bdfdb2.env'&lt;BR /&gt;&lt;BR /&gt;Error:&lt;BR /&gt;&lt;BR /&gt;Unknown cipher type '. /oracle/FAHRIS/fahrisora/8.0.6/FAHRIS_bdfdb2.env'</description>
      <pubDate>Sun, 06 Mar 2005 08:20:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498358#M846296</guid>
      <dc:creator>Ashok_20</dc:creator>
      <dc:date>2005-03-06T08:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need Shell Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498359#M846297</link>
      <description>I think it has something to do with keys. Did you copy key from the server into authorized_keys file on the remote host?</description>
      <pubDate>Sun, 06 Mar 2005 08:47:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498359#M846297</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-03-06T08:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need Shell Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498360#M846298</link>
      <description>sir,&lt;BR /&gt;&lt;BR /&gt;Both My hosts are HP Unix (11.11). I did nt copy authorized_keys . Can you ple guide me how to do that ?&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; regards&lt;BR /&gt;Ashok</description>
      <pubDate>Sun, 06 Mar 2005 08:51:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498360#M846298</guid>
      <dc:creator>Ashok_20</dc:creator>
      <dc:date>2005-03-06T08:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need Shell Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498361#M846299</link>
      <description>Yep, here is an exellent guide:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cvrti.utah.edu/~dustman/no-more-pw-ssh/" target="_blank"&gt;http://www.cvrti.utah.edu/~dustman/no-more-pw-ssh/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I can't explain it better :)</description>
      <pubDate>Sun, 06 Mar 2005 09:00:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498361#M846299</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-03-06T09:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need Shell Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498362#M846300</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need some Shell Script Help. I want to have a shell script on one m/c, whose contents will be as follows:&lt;BR /&gt;&lt;BR /&gt;# -- M/c1 scripts&lt;BR /&gt;./&lt;PATH_NAME&gt;/test.env&lt;BR /&gt;./&lt;PATH_NAME&gt;/test1.sh&lt;BR /&gt;remsh M/c2 "./&lt;PATH_NAME&gt;/test1.env;./PATH_NAME&amp;gt;/test1.sh"&lt;/PATH_NAME&gt;&lt;/PATH_NAME&gt;&lt;/PATH_NAME&gt;</description>
      <pubDate>Mon, 07 Mar 2005 05:10:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498362#M846300</guid>
      <dc:creator>Olivier LEGRAND</dc:creator>
      <dc:date>2005-03-07T05:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need Shell Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498363#M846301</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.shelldorado.com" target="_blank"&gt;www.shelldorado.com&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;read and learn&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                Steve Steel</description>
      <pubDate>Mon, 07 Mar 2005 05:23:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498363#M846301</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2005-03-07T05:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need Shell Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498364#M846302</link>
      <description>What's the question? :)</description>
      <pubDate>Mon, 07 Mar 2005 05:27:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498364#M846302</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-03-07T05:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need Shell Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498365#M846303</link>
      <description>Thanks Olivier,&lt;BR /&gt;&lt;BR /&gt;Its working Now. I used remsh and able to run the script. Thansk for your help.&lt;BR /&gt;&lt;BR /&gt;Thanks To Alex Also for his cooperation.&lt;BR /&gt;&lt;BR /&gt;regds&lt;BR /&gt;&lt;BR /&gt;Ashok</description>
      <pubDate>Mon, 07 Mar 2005 06:43:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498365#M846303</guid>
      <dc:creator>Ashok_20</dc:creator>
      <dc:date>2005-03-07T06:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need Shell Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498366#M846304</link>
      <description>It is a great pleasure for me.&lt;BR /&gt;&lt;BR /&gt;Can you assign few points, for all of us.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Olivier</description>
      <pubDate>Mon, 07 Mar 2005 08:19:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498366#M846304</guid>
      <dc:creator>Olivier LEGRAND</dc:creator>
      <dc:date>2005-03-07T08:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need Shell Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498367#M846305</link>
      <description>Hi Oliver,&lt;BR /&gt;&lt;BR /&gt;I will be glad to assign Points. But where and how to assign points ?</description>
      <pubDate>Fri, 11 Mar 2005 16:02:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498367#M846305</guid>
      <dc:creator>Ashok_20</dc:creator>
      <dc:date>2005-03-11T16:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need Shell Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498368#M846306</link>
      <description>At the right corner of each message box you can see a dropdown. Currently it says "unassigned", but you can change it to the number of points, according to how this answer helped you (if it helped) and then click "Submit".&lt;BR /&gt;&lt;BR /&gt;That's all :)</description>
      <pubDate>Fri, 11 Mar 2005 18:06:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-help/m-p/3498368#M846306</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-03-11T18:06:25Z</dc:date>
    </item>
  </channel>
</rss>

