<?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 nohup command from sudo in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command-from-sudo/m-p/2572947#M857536</link>
    <description>We have a script that we run from sudo that checks environment variables, and then we can run one of several jobs.  The jobs are submitted using:&lt;BR /&gt;nohup cmd &amp;gt;&amp;gt; log 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;This should put the command in the background and log to the log file.  The original script (sudo run_script) never releases the nohup command.  You can do ps and see the parent/child process ids, and it just sits there.  We can ctrl-z &amp;amp; bg to push both processes into the background.  Is there a limitation about running nohup jobs from sudo.  I have tried nohup cmd &amp;amp; &amp;gt;&amp;gt; log 2&amp;gt;&amp;amp;1, but this sends the output to nohup.out, and not the log file.  The original way also sends output to nohup.out.</description>
    <pubDate>Thu, 30 Aug 2001 14:28:14 GMT</pubDate>
    <dc:creator>Chris Burton_3</dc:creator>
    <dc:date>2001-08-30T14:28:14Z</dc:date>
    <item>
      <title>nohup command from sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command-from-sudo/m-p/2572947#M857536</link>
      <description>We have a script that we run from sudo that checks environment variables, and then we can run one of several jobs.  The jobs are submitted using:&lt;BR /&gt;nohup cmd &amp;gt;&amp;gt; log 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;This should put the command in the background and log to the log file.  The original script (sudo run_script) never releases the nohup command.  You can do ps and see the parent/child process ids, and it just sits there.  We can ctrl-z &amp;amp; bg to push both processes into the background.  Is there a limitation about running nohup jobs from sudo.  I have tried nohup cmd &amp;amp; &amp;gt;&amp;gt; log 2&amp;gt;&amp;amp;1, but this sends the output to nohup.out, and not the log file.  The original way also sends output to nohup.out.</description>
      <pubDate>Thu, 30 Aug 2001 14:28:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command-from-sudo/m-p/2572947#M857536</guid>
      <dc:creator>Chris Burton_3</dc:creator>
      <dc:date>2001-08-30T14:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: nohup command from sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command-from-sudo/m-p/2572948#M857537</link>
      <description>Try enclosing the entire line in grave quotes ``  such as;&lt;BR /&gt;&lt;BR /&gt;`nohup cmd &amp;gt;&amp;gt; log 2&amp;gt;&amp;amp;1 &amp;amp;`&lt;BR /&gt;&lt;BR /&gt;Grave quotes are the backward quote next to the 1 key.</description>
      <pubDate>Thu, 30 Aug 2001 20:55:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-command-from-sudo/m-p/2572948#M857537</guid>
      <dc:creator>Angus Crome</dc:creator>
      <dc:date>2001-08-30T20:55:02Z</dc:date>
    </item>
  </channel>
</rss>

