<?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 remsh? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh/m-p/2436977#M5518</link>
    <description>I have two HP-UX 10.20 systems.  From systema I enter the following:&lt;BR /&gt;         remsh systemb -n doit&lt;BR /&gt;&lt;BR /&gt;doit is a shell script that looks like this:&lt;BR /&gt;         cd /a/b/c/d&lt;BR /&gt;         domore&lt;BR /&gt;         echo "do it done"&lt;BR /&gt;&lt;BR /&gt;domore is a shell script that resides in directory /a/b/c/d and looks like this&lt;BR /&gt;        upgm udata&lt;BR /&gt;        echo "do more done"&lt;BR /&gt;&lt;BR /&gt;upgm is a unikix cobol program that accesses data in the udata file.  When &lt;BR /&gt;I proceed as above, I get an error.  &lt;BR /&gt;&lt;BR /&gt;START                                                                           &lt;BR /&gt;                                                                                &lt;BR /&gt;Execution error : file 'udata.int'                                             &lt;BR /&gt;error code: 114, pc=235, call=1, seg=0                                          &lt;BR /&gt;114     Attempt to access item beyond bounds of memory (Signal 10)              &lt;BR /&gt;                                                                                &lt;BR /&gt;HP/MF COBOL Version: B.12.25                                                    &lt;BR /&gt;HP-UX triserv B.10.20 E 9000/899                                                &lt;BR /&gt;pid: 12246 gid: 101 uid: 107                                                    &lt;BR /&gt;Wed Aug 16 08:08:55 2000                                                        &lt;BR /&gt;  8:08am  up 22 days, 10:08,  172 users,  load average: 1.28, 0.83, 0.99        &lt;BR /&gt;Thread mode:            No Threads                                              &lt;BR /&gt;RTS Error:              COBOL                                                   &lt;BR /&gt;Sync Signals:           COBOL                                                   &lt;BR /&gt;ASync Signals:          COBOL                                                   &lt;BR /&gt;cobtidy on exception:   False                                                   &lt;BR /&gt;&lt;BR /&gt;do more done                                                                    &lt;BR /&gt;do it done     &lt;BR /&gt;&lt;BR /&gt;However, if I logon to systemb and enter doit, everything works okay!  I suspect that so environment variable is to blame.  To diagnose that, I inserted echo "`pwd`" commands into  doit and domore.  They both show directory /a/b/c/d.  Any ideas?&lt;BR /&gt;TIA&lt;BR /&gt;Terry Kummell</description>
    <pubDate>Wed, 16 Aug 2000 14:14:36 GMT</pubDate>
    <dc:creator>Terry Kummell</dc:creator>
    <dc:date>2000-08-16T14:14:36Z</dc:date>
    <item>
      <title>remsh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh/m-p/2436977#M5518</link>
      <description>I have two HP-UX 10.20 systems.  From systema I enter the following:&lt;BR /&gt;         remsh systemb -n doit&lt;BR /&gt;&lt;BR /&gt;doit is a shell script that looks like this:&lt;BR /&gt;         cd /a/b/c/d&lt;BR /&gt;         domore&lt;BR /&gt;         echo "do it done"&lt;BR /&gt;&lt;BR /&gt;domore is a shell script that resides in directory /a/b/c/d and looks like this&lt;BR /&gt;        upgm udata&lt;BR /&gt;        echo "do more done"&lt;BR /&gt;&lt;BR /&gt;upgm is a unikix cobol program that accesses data in the udata file.  When &lt;BR /&gt;I proceed as above, I get an error.  &lt;BR /&gt;&lt;BR /&gt;START                                                                           &lt;BR /&gt;                                                                                &lt;BR /&gt;Execution error : file 'udata.int'                                             &lt;BR /&gt;error code: 114, pc=235, call=1, seg=0                                          &lt;BR /&gt;114     Attempt to access item beyond bounds of memory (Signal 10)              &lt;BR /&gt;                                                                                &lt;BR /&gt;HP/MF COBOL Version: B.12.25                                                    &lt;BR /&gt;HP-UX triserv B.10.20 E 9000/899                                                &lt;BR /&gt;pid: 12246 gid: 101 uid: 107                                                    &lt;BR /&gt;Wed Aug 16 08:08:55 2000                                                        &lt;BR /&gt;  8:08am  up 22 days, 10:08,  172 users,  load average: 1.28, 0.83, 0.99        &lt;BR /&gt;Thread mode:            No Threads                                              &lt;BR /&gt;RTS Error:              COBOL                                                   &lt;BR /&gt;Sync Signals:           COBOL                                                   &lt;BR /&gt;ASync Signals:          COBOL                                                   &lt;BR /&gt;cobtidy on exception:   False                                                   &lt;BR /&gt;&lt;BR /&gt;do more done                                                                    &lt;BR /&gt;do it done     &lt;BR /&gt;&lt;BR /&gt;However, if I logon to systemb and enter doit, everything works okay!  I suspect that so environment variable is to blame.  To diagnose that, I inserted echo "`pwd`" commands into  doit and domore.  They both show directory /a/b/c/d.  Any ideas?&lt;BR /&gt;TIA&lt;BR /&gt;Terry Kummell</description>
      <pubDate>Wed, 16 Aug 2000 14:14:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh/m-p/2436977#M5518</guid>
      <dc:creator>Terry Kummell</dc:creator>
      <dc:date>2000-08-16T14:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: remsh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh/m-p/2436978#M5519</link>
      <description>remsh is doing the job. Try to set up the path required in your script. (path to cobol, or apps). PATH=$PATH:/whatever/you/need:/plus/more</description>
      <pubDate>Wed, 16 Aug 2000 14:19:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh/m-p/2436978#M5519</guid>
      <dc:creator>Antoanetta Naghiu</dc:creator>
      <dc:date>2000-08-16T14:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: remsh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh/m-p/2436979#M5520</link>
      <description>Terry:&lt;BR /&gt;&lt;BR /&gt;The problem is that remsh does not inherit the environment (which you inherit when you rlogin  - ie. there is no equivalent for .profile) so you would have to set the environments...  PATH as described above, as well as any SHLIB_PATH etc.&lt;BR /&gt;&lt;BR /&gt;actually, you might want to rlogin to the box and type env, so that you know what variables to set.&lt;BR /&gt;&lt;BR /&gt;Good luck</description>
      <pubDate>Wed, 16 Aug 2000 14:38:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh/m-p/2436979#M5520</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-08-16T14:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: remsh?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh/m-p/2436980#M5521</link>
      <description>The issue was two environmenet variables.  One for informix and the other was the PATH.  I took your advice and used rlogin then env to find out what the working environmente looked like.  Then, I just modified the shell script to add these variables.  I was able to simplify the shell script by incorporating the domore shell script in the doit shell script.  So my final shell script looks like this:&lt;BR /&gt;&lt;BR /&gt;            PATH=/all/sorts/of/path/stuff/plus/my/working/directory&lt;BR /&gt;            INFORMIXDIR=/informixdir/&lt;BR /&gt;            export PATH INFORMIXDIR&lt;BR /&gt;            cd /a/b/c/d&lt;BR /&gt;            upgm udata&lt;BR /&gt;&lt;BR /&gt;and all is well!  Thanks for the help!&lt;BR /&gt;&lt;BR /&gt;Terry Kummell</description>
      <pubDate>Wed, 16 Aug 2000 16:52:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh/m-p/2436980#M5521</guid>
      <dc:creator>Terry Kummell</dc:creator>
      <dc:date>2000-08-16T16:52:20Z</dc:date>
    </item>
  </channel>
</rss>

