<?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 Renaming a shell script's process name in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925258#M408741</link>
    <description>I have to run a shell script that stays active for a long, long time. But when I run top, ps, glance, etc I only see "ksh" as the process name. I would prefer seeing something more significant. I'd like to have it renamed.&lt;BR /&gt;&lt;BR /&gt;The only way I know how to do this is to start it from a C program with a fudged exec() call. That's not nice. Is there any other easy way to do this?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Mon, 12 Sep 2005 09:59:22 GMT</pubDate>
    <dc:creator>Olivier Masse</dc:creator>
    <dc:date>2005-09-12T09:59:22Z</dc:date>
    <item>
      <title>Renaming a shell script's process name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925258#M408741</link>
      <description>I have to run a shell script that stays active for a long, long time. But when I run top, ps, glance, etc I only see "ksh" as the process name. I would prefer seeing something more significant. I'd like to have it renamed.&lt;BR /&gt;&lt;BR /&gt;The only way I know how to do this is to start it from a C program with a fudged exec() call. That's not nice. Is there any other easy way to do this?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 12 Sep 2005 09:59:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925258#M408741</guid>
      <dc:creator>Olivier Masse</dc:creator>
      <dc:date>2005-09-12T09:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a shell script's process name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925259#M408742</link>
      <description>Hmm....&lt;BR /&gt;&lt;BR /&gt;would the following be enough?&lt;BR /&gt;&lt;BR /&gt;root  xxxx  xxxx 11 17:03:42 pts/xx    0:00 /bin/sh ./change_timeout.sh &lt;PARAMETERS&gt;&lt;BR /&gt;&lt;BR /&gt;That's what I get when I call my change_timeout.sh which has an interpreter set in it's first line (#!/bin/sh).&lt;/PARAMETERS&gt;</description>
      <pubDate>Mon, 12 Sep 2005 10:05:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925259#M408742</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2005-09-12T10:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a shell script's process name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925260#M408743</link>
      <description>Unfortunately it doesn't do what I want. seem to work.&lt;BR /&gt;&lt;BR /&gt;I can see it in "ps" as command-line options but top still shows only "ksh".&lt;BR /&gt;&lt;BR /&gt;BTW I have the bang #!/bin/ksh at the top.&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Sep 2005 10:20:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925260#M408743</guid>
      <dc:creator>Olivier Masse</dc:creator>
      <dc:date>2005-09-12T10:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a shell script's process name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925261#M408744</link>
      <description>Are you exec'ing ksh from within your shell script...so that your current shell's invocation is replaced by ksh???</description>
      <pubDate>Mon, 12 Sep 2005 10:21:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925261#M408744</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-09-12T10:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a shell script's process name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925262#M408745</link>
      <description>&amp;gt; Are you exec'ing ksh from within your &lt;BR /&gt;&amp;gt; shell script...so that your current &lt;BR /&gt;&amp;gt; shell's invocation is replaced by ksh???&lt;BR /&gt;&lt;BR /&gt;Yes, since there is a bang at the start.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Sep 2005 10:23:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925262#M408745</guid>
      <dc:creator>Olivier Masse</dc:creator>
      <dc:date>2005-09-12T10:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a shell script's process name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925263#M408746</link>
      <description>Still not clear about this issue...could you provide the command you're trying to run.&lt;BR /&gt;&lt;BR /&gt;thx&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Sep 2005 10:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925263#M408746</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-09-12T10:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a shell script's process name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925264#M408747</link>
      <description>I'm just throwing an idea out there and I havn't tested it....  &lt;BR /&gt;&lt;BR /&gt;how about making a copy of ksh and name it "scriptwrap" or something else meaningful and then run your job/script from inside "scriptwrap" shell???</description>
      <pubDate>Mon, 12 Sep 2005 10:39:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925264#M408747</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-09-12T10:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a shell script's process name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925265#M408748</link>
      <description>To build a bit on Alan's idea:  How about just a symbolic link into the current directory (or your favorite bin directory) to ksh and call it something else?&lt;BR /&gt;&lt;BR /&gt;$ cat testit&lt;BR /&gt;#!/home/bo/myshell&lt;BR /&gt;sleep 60&lt;BR /&gt;&lt;BR /&gt;$ cd ~&lt;BR /&gt;$ ls -al myshell&lt;BR /&gt;&lt;BR /&gt;lrwxr-x---   1 bo        users              8 Sep 12 11:06 myshell -&amp;gt; /bin/ksh&lt;BR /&gt;&lt;BR /&gt;$ ./testit &amp;amp;&lt;BR /&gt;&lt;BR /&gt;I just tried it, and it works great with the ps -ef | grep command combo&lt;BR /&gt;&lt;BR /&gt;$ ps -ef | grep -v grep | grep myshell&lt;BR /&gt;&lt;BR /&gt;    bo 15716 15187  0 11:06:53 pts/4     0:00 /home/bo/myshell ./testit</description>
      <pubDate>Mon, 12 Sep 2005 11:18:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925265#M408748</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-09-12T11:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a shell script's process name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925266#M408749</link>
      <description>John's solution did the trick.&lt;BR /&gt;&lt;BR /&gt;Thanks to everybody.</description>
      <pubDate>Mon, 12 Sep 2005 11:26:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925266#M408749</guid>
      <dc:creator>Olivier Masse</dc:creator>
      <dc:date>2005-09-12T11:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a shell script's process name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925267#M408750</link>
      <description>.</description>
      <pubDate>Mon, 12 Sep 2005 11:26:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-a-shell-script-s-process-name/m-p/4925267#M408750</guid>
      <dc:creator>Olivier Masse</dc:creator>
      <dc:date>2005-09-12T11:26:43Z</dc:date>
    </item>
  </channel>
</rss>

