<?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: renaming launched process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-launched-process/m-p/2907161#M936401</link>
    <description>I had to create a small "c" program to call "execl". The program then launched the desired program with my altered name.&lt;BR /&gt;&lt;BR /&gt;Sample-&lt;BR /&gt;sprintf( cdentry, PATH, argv[1]);&lt;BR /&gt;sprintf( uvname, "%s '* %s'",UVNAME,argv[1]);&lt;BR /&gt;x = chdir(cdentry);&lt;BR /&gt;if ( x != 0 ) {&lt;BR /&gt;fprintf(stderr, "%s not a valid directory\n", argv[1]);&lt;BR /&gt;exit(2);&lt;BR /&gt;}&lt;BR /&gt;x = execl ( CMD , uvname, ARG1, ARG2, (char *)NULL);&lt;BR /&gt;perror(" Error from execl\n");&lt;BR /&gt;&lt;BR /&gt;"uvname" has the name I want to appear on "ps" lists. (This program can be compiled with the brain-damaged "c" compiler HP provides).&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills&lt;BR /&gt;</description>
    <pubDate>Tue, 18 Feb 2003 16:27:54 GMT</pubDate>
    <dc:creator>Rodney Hills</dc:creator>
    <dc:date>2003-02-18T16:27:54Z</dc:date>
    <item>
      <title>renaming launched process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-launched-process/m-p/2907160#M936400</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I would like to rename a process launched (just before launching it) in a shell script. In order for this process to appear in the ps command with the renamed ocuurence. Ex:&lt;BR /&gt;A process named /usr/sbin/toto.sh to appear like tata under the p^s command.&lt;BR /&gt;Is this possible????&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jerome</description>
      <pubDate>Tue, 18 Feb 2003 16:05:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-launched-process/m-p/2907160#M936400</guid>
      <dc:creator>Chartier Jerome</dc:creator>
      <dc:date>2003-02-18T16:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: renaming launched process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-launched-process/m-p/2907161#M936401</link>
      <description>I had to create a small "c" program to call "execl". The program then launched the desired program with my altered name.&lt;BR /&gt;&lt;BR /&gt;Sample-&lt;BR /&gt;sprintf( cdentry, PATH, argv[1]);&lt;BR /&gt;sprintf( uvname, "%s '* %s'",UVNAME,argv[1]);&lt;BR /&gt;x = chdir(cdentry);&lt;BR /&gt;if ( x != 0 ) {&lt;BR /&gt;fprintf(stderr, "%s not a valid directory\n", argv[1]);&lt;BR /&gt;exit(2);&lt;BR /&gt;}&lt;BR /&gt;x = execl ( CMD , uvname, ARG1, ARG2, (char *)NULL);&lt;BR /&gt;perror(" Error from execl\n");&lt;BR /&gt;&lt;BR /&gt;"uvname" has the name I want to appear on "ps" lists. (This program can be compiled with the brain-damaged "c" compiler HP provides).&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Feb 2003 16:27:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-launched-process/m-p/2907161#M936401</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2003-02-18T16:27:54Z</dc:date>
    </item>
  </channel>
</rss>

