<?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: nohup command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command/m-p/2460810#M14049</link>
    <description>Eric:&lt;BR /&gt;&lt;BR /&gt;'nohup' is one of several aliases that is compiled into the shell.  It can still be redefined as you have done.  If you want, you could place your alias into the user's $HOME/.profile.  If the use of the alias as you have defined it is a "special case", however, I think you should consider aliasing it within the script that the users run, and NOT their global profile.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 02 Nov 2000 14:57:38 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2000-11-02T14:57:38Z</dc:date>
    <item>
      <title>nohup command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command/m-p/2460807#M14046</link>
      <description>The nohup command creates the file nohup.out with -rw------- as the permissions.&lt;BR /&gt;We have groups of users that cover for each other but have their own login. I would like th nohup command to create the nohup.out with -rw-rw---- as the permissions.&lt;BR /&gt;Here was my solutions.&lt;BR /&gt;1. in the script that gets executed add a chmod g+rw nohup.out. The users did not wat this because it would mean work on their part.&lt;BR /&gt;2. create an alias nohup='&amp;gt;&amp;gt;nohup.out; chmod 660 nohup.out; /usr/bin/nohup '&lt;BR /&gt;The users liked this &lt;BR /&gt;The question I have is when I do the alias command, it shows nohup='nohup '&lt;BR /&gt;When I do type nohup it shows &lt;BR /&gt;nohup is an exported alias for nohup &lt;BR /&gt;Where does the nohup command alais gets set.&lt;BR /&gt;I can not seem to find it.&lt;BR /&gt;TIA&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Nov 2000 14:40:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command/m-p/2460807#M14046</guid>
      <dc:creator>eric stewart</dc:creator>
      <dc:date>2000-11-02T14:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: nohup command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command/m-p/2460808#M14047</link>
      <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;If you do 'man sh-posix' and search for nohup you will find that it is one of the set of exported aliases that are compiled into the shell. You can remove it with 'unalias nohup'.&lt;BR /&gt;&lt;BR /&gt;Rather than creating an alias, I think that you will have more success by defining a shell function called nohup.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Thu, 02 Nov 2000 14:53:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command/m-p/2460808#M14047</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-11-02T14:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: nohup command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command/m-p/2460809#M14048</link>
      <description>Eric,&lt;BR /&gt;&lt;BR /&gt;The nohup alias is compiled into ksh (see; man ksh), you can unset or redefine it though.&lt;BR /&gt;&lt;BR /&gt;Greetz, Danny&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Nov 2000 14:54:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command/m-p/2460809#M14048</guid>
      <dc:creator>Danny Engelbarts</dc:creator>
      <dc:date>2000-11-02T14:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: nohup command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command/m-p/2460810#M14049</link>
      <description>Eric:&lt;BR /&gt;&lt;BR /&gt;'nohup' is one of several aliases that is compiled into the shell.  It can still be redefined as you have done.  If you want, you could place your alias into the user's $HOME/.profile.  If the use of the alias as you have defined it is a "special case", however, I think you should consider aliasing it within the script that the users run, and NOT their global profile.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 02 Nov 2000 14:57:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command/m-p/2460810#M14049</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-11-02T14:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: nohup command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command/m-p/2460811#M14050</link>
      <description>I would use a shell, that contains:&lt;BR /&gt;nohup $1;&lt;BR /&gt;chmod 660 nohup.out&lt;BR /&gt;&lt;BR /&gt;Or something like.&lt;BR /&gt;&lt;BR /&gt;And use  the shell as alias of nohup</description>
      <pubDate>Thu, 02 Nov 2000 14:59:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command/m-p/2460811#M14050</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2000-11-02T14:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: nohup command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command/m-p/2460812#M14051</link>
      <description>Thanks,&lt;BR /&gt;The second part of the question is why do they do it for nohup? Page 4 of the man ksh shows all of the others have a default parameter set.&lt;BR /&gt;TIA</description>
      <pubDate>Thu, 02 Nov 2000 15:04:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command/m-p/2460812#M14051</guid>
      <dc:creator>eric stewart</dc:creator>
      <dc:date>2000-11-02T15:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: nohup command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command/m-p/2460813#M14052</link>
      <description>Eric:&lt;BR /&gt;&lt;BR /&gt;OK, second question's answer:&lt;BR /&gt;&lt;BR /&gt;If you look at the nohup alias you will see that the last character of the alias value is a blank, as: nohup='nohup '.  If you look at the man page for sh-posix, it notes: "If&lt;BR /&gt;the last character of the alias value is a blank, the word following the alias is also checked for alias substitution."&lt;BR /&gt;&lt;BR /&gt;Thus, the alias as defined, allows you to use the 'nohup' command AND check the command following it for alias substitution.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 02 Nov 2000 15:44:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command/m-p/2460813#M14052</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-11-02T15:44:32Z</dc:date>
    </item>
  </channel>
</rss>

