<?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: Rexec command problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rexec-command-problem/m-p/3554926#M225626</link>
    <description>Can you post the output and error messages?&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;identify what you changed?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
    <pubDate>Wed, 01 Jun 2005 13:02:46 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2005-06-01T13:02:46Z</dc:date>
    <item>
      <title>Rexec command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rexec-command-problem/m-p/3554920#M225620</link>
      <description>I m writing the script using the rexec like that ..&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;logfile=send_item_master_to_gemms.log&lt;BR /&gt;DX_ITEM_path=/db_spd_sheet/sci/dx&lt;BR /&gt;dmp_path=/users/nmxbatch/subrata&lt;BR /&gt;remote_path=/home/nmxbatch/subrata&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;exec $dmp_path/connect_gemp022p $remote_path/load_ITEM_MASTER.sh&lt;BR /&gt;&lt;BR /&gt;echo "Completing  loading of  DX.ITEM.csv into ITEM_MASTER GEMMS Server" &amp;gt;&amp;gt; ${dmp_path}/$logfile&lt;BR /&gt;echo `date` &amp;gt;&amp;gt;  ${dmp_path}/$logfile&lt;BR /&gt;rcp -p nmxbatch@gemp022p:/home/nmxbatch/subrata/load_DX.ITEM.log /users/nmxbatch/subrata/&lt;BR /&gt;echo $dmp_path &amp;gt;&amp;gt;${dmp_path}/$logfile&lt;BR /&gt;ls -lrt load_DX.ITEM.log&amp;gt;&amp;gt;${dmp_path}/$logfile&lt;BR /&gt;cd $dmp_path&lt;BR /&gt;cat load_DX.ITEM.log &amp;gt;&amp;gt;${dmp_path}/$logfile&lt;BR /&gt;&lt;BR /&gt;echo `date` &amp;gt;&amp;gt;  ${dmp_path}/$logfile&lt;BR /&gt;echo "End of Loading DX.ITEM.csv into ITEM_MASTER GEMMS Server" &amp;gt;&amp;gt; ${dmp_path}/$logfile&lt;BR /&gt;&lt;BR /&gt; and the load_ITEM_MASTER.sh script is attached which is executing on the remote server &lt;BR /&gt;#---------------------&lt;BR /&gt;&lt;BR /&gt; Problem is through rexec command i can execute the load_ITEM_MASTER.sh on remote server But after that it is exiting and not able to execute  after that rexec comand . Still not able to understand why it is behaving like this .</description>
      <pubDate>Tue, 31 May 2005 08:58:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rexec-command-problem/m-p/3554920#M225620</guid>
      <dc:creator>subrata  Sur</dc:creator>
      <dc:date>2005-05-31T08:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rexec command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rexec-command-problem/m-p/3554921#M225621</link>
      <description>Are you sure you posted your script properly?&lt;BR /&gt;&lt;BR /&gt;You have an "exec" and not an "rexec"&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Tue, 31 May 2005 09:43:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rexec-command-problem/m-p/3554921#M225621</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-05-31T09:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rexec command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rexec-command-problem/m-p/3554922#M225622</link>
      <description>The script coonect-gemp022p is used for connecting to the remote server &lt;BR /&gt;and calling the script which is passed as parameter where i have use the rexec command .&lt;BR /&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;#include &lt;NETINET&gt;&lt;BR /&gt;#include &lt;NETDB.H&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt; &lt;BR /&gt;char *host[] = { "gemms" };&lt;BR /&gt;char *user = "nmxbatch";&lt;BR /&gt;char *passwd = "nmxbatch";&lt;BR /&gt;char *cmd = "";&lt;BR /&gt; &lt;BR /&gt;/* remsh uamtv005 . .profile 2&amp;gt;&amp;amp;- \; test.prg  */&lt;BR /&gt; &lt;BR /&gt;main(argc, argv)&lt;BR /&gt;        char **argv;&lt;BR /&gt;        int argc;&lt;BR /&gt;        {&lt;BR /&gt;        char ch;&lt;BR /&gt;        struct servent *servent;&lt;BR /&gt;        FILE *fp;&lt;BR /&gt;        int sd;&lt;BR /&gt; &lt;BR /&gt;        servent = getservbyname("exec", "tcp");&lt;BR /&gt;        sd = rexec(host, servent-&amp;gt;s_port, user, passwd, argv[1], 0);&lt;BR /&gt;        fp = fdopen(sd, "r");&lt;BR /&gt;        while ((ch = getc(fp)) != EOF)&lt;BR /&gt;        putchar(ch);&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;&lt;/STDIO.H&gt;&lt;/NETDB.H&gt;&lt;/NETINET&gt;&lt;/SYS&gt;&lt;/SYS&gt;&lt;/SYS&gt;</description>
      <pubDate>Tue, 31 May 2005 10:17:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rexec-command-problem/m-p/3554922#M225622</guid>
      <dc:creator>subrata  Sur</dc:creator>
      <dc:date>2005-05-31T10:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rexec command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rexec-command-problem/m-p/3554923#M225623</link>
      <description>Guessing the problem in load_item_master script  &lt;BR /&gt;&lt;BR /&gt;Need help on this issue  as the script is exiting after executing this line &lt;BR /&gt;&lt;BR /&gt;exec $dmp_path/connect_gemp022p $remote_path/load_ITEM_MASTER.sh</description>
      <pubDate>Tue, 31 May 2005 10:22:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rexec-command-problem/m-p/3554923#M225623</guid>
      <dc:creator>subrata  Sur</dc:creator>
      <dc:date>2005-05-31T10:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rexec command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rexec-command-problem/m-p/3554924#M225624</link>
      <description>exec $dmp_path/connect_gemp022p $remote_path/load_ITEM_MASTER.sh&lt;BR /&gt;&lt;BR /&gt;Will never return to the script that called it and the script that called exec will terminate.&lt;BR /&gt;&lt;BR /&gt;You just need to remove the "exec " from the beginning of that line:&lt;BR /&gt;&lt;BR /&gt;$dmp_path/connect_gemp022p $remote_path/load_ITEM_MASTER.sh&lt;BR /&gt;&lt;BR /&gt;If you want it to run in the background and not wait, then issue:&lt;BR /&gt;&lt;BR /&gt;$dmp_path/connect_gemp022p $remote_path/load_ITEM_MASTER.sh &amp;amp;&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;nohup $dmp_path/connect_gemp022p $remote_path/load_ITEM_MASTER.sh &amp;amp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Tue, 31 May 2005 12:05:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rexec-command-problem/m-p/3554924#M225624</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-05-31T12:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rexec command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rexec-command-problem/m-p/3554925#M225625</link>
      <description>Trying it after removing the exec command But still getting the same error .. It is exiting fter sqlloder .&lt;BR /&gt;&lt;BR /&gt; Any idea ...</description>
      <pubDate>Wed, 01 Jun 2005 12:30:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rexec-command-problem/m-p/3554925#M225625</guid>
      <dc:creator>subrata  Sur</dc:creator>
      <dc:date>2005-06-01T12:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rexec command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rexec-command-problem/m-p/3554926#M225626</link>
      <description>Can you post the output and error messages?&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;identify what you changed?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Wed, 01 Jun 2005 13:02:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rexec-command-problem/m-p/3554926#M225626</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-06-01T13:02:46Z</dc:date>
    </item>
  </channel>
</rss>

