<?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 question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533314#M638210</link>
    <description>Hi,&lt;BR /&gt;I've never started a C-prog through nohup directly.  I've always used a surrounding shell script.&lt;BR /&gt;Maybe, just maybe, a C-prog stops if it's detached from it's parent shell; just a (very very) wild guess.&lt;BR /&gt;Try putting a sleep command in a shell script, start it through nohup, logoff, and check if that keeps running. If so, put your prog in a shell script.&lt;BR /&gt;Thierry.</description>
    <pubDate>Mon, 28 May 2001 09:30:46 GMT</pubDate>
    <dc:creator>Thierry Poels_1</dc:creator>
    <dc:date>2001-05-28T09:30:46Z</dc:date>
    <item>
      <title>Nohup question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533307#M638203</link>
      <description>I am probably just doing something stupid, but if I submit a job as follows:&lt;BR /&gt;&lt;BR /&gt;nohup jobname parameter_file &amp;amp;&lt;BR /&gt;&lt;BR /&gt;and I exit, it says there are running jobs.  If I then exit again it terminates the jobs.  What should I do to submit a job allowing me to exit my session without the job terminating?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Carlo</description>
      <pubDate>Mon, 28 May 2001 06:43:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533307#M638203</guid>
      <dc:creator>Carlo Henrico_1</dc:creator>
      <dc:date>2001-05-28T06:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Nohup question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533308#M638204</link>
      <description>Hi,&lt;BR /&gt;your shell warns you that you have running jobs.  But when you exit your nohup jobs should keep on running.  No special configuring required.&lt;BR /&gt;Put a sleep command in your script, and "ps -ef | grep sleep" after exiting should show you job.&lt;BR /&gt;good luck,&lt;BR /&gt;Thierry.</description>
      <pubDate>Mon, 28 May 2001 07:01:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533308#M638204</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-05-28T07:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Nohup question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533309#M638205</link>
      <description>Are you 100% sure that the job terminates when you exit? As far as I can see, you're not doing anything wrong.&lt;BR /&gt;&lt;BR /&gt;Vincent&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 May 2001 07:04:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533309#M638205</guid>
      <dc:creator>Vincent Stedema</dc:creator>
      <dc:date>2001-05-28T07:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Nohup question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533310#M638206</link>
      <description>I have just re-tested it (there are two jobs) and they definately do terminate.  They are both C++ programs developed in-house.  Maybe there is something special which should be included in the code?&lt;BR /&gt;&lt;BR /&gt;Carlo</description>
      <pubDate>Mon, 28 May 2001 07:10:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533310#M638206</guid>
      <dc:creator>Carlo Henrico_1</dc:creator>
      <dc:date>2001-05-28T07:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nohup question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533311#M638207</link>
      <description>...maybe I should pose this question under the "Languages" forum?&lt;BR /&gt;&lt;BR /&gt;Carlo</description>
      <pubDate>Mon, 28 May 2001 08:38:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533311#M638207</guid>
      <dc:creator>Carlo Henrico_1</dc:creator>
      <dc:date>2001-05-28T08:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Nohup question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533312#M638208</link>
      <description>Verify the priority of the job with ps -elf|grep job,and list it with nice (see man nice).</description>
      <pubDate>Mon, 28 May 2001 08:39:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533312#M638208</guid>
      <dc:creator>Vincenzo Restuccia</dc:creator>
      <dc:date>2001-05-28T08:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Nohup question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533313#M638209</link>
      <description>Vincenzo&lt;BR /&gt;&lt;BR /&gt;Any idea what I should do with its nice value once I know it?&lt;BR /&gt;&lt;BR /&gt;Carlo</description>
      <pubDate>Mon, 28 May 2001 09:08:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533313#M638209</guid>
      <dc:creator>Carlo Henrico_1</dc:creator>
      <dc:date>2001-05-28T09:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Nohup question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533314#M638210</link>
      <description>Hi,&lt;BR /&gt;I've never started a C-prog through nohup directly.  I've always used a surrounding shell script.&lt;BR /&gt;Maybe, just maybe, a C-prog stops if it's detached from it's parent shell; just a (very very) wild guess.&lt;BR /&gt;Try putting a sleep command in a shell script, start it through nohup, logoff, and check if that keeps running. If so, put your prog in a shell script.&lt;BR /&gt;Thierry.</description>
      <pubDate>Mon, 28 May 2001 09:30:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533314#M638210</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-05-28T09:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Nohup question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533315#M638211</link>
      <description>Watch the file nohup.out for error messages.&lt;BR /&gt;&lt;BR /&gt;You may also try redirecting stdin :&lt;BR /&gt;nohup your_prog</description>
      <pubDate>Mon, 28 May 2001 11:11:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533315#M638211</guid>
      <dc:creator>Laurent Paumier</dc:creator>
      <dc:date>2001-05-28T11:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Nohup question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533316#M638212</link>
      <description>I had a problem with a programm which checked if the parent process was still running. This programm also died if i loged out, even when using nohup.&lt;BR /&gt;&lt;BR /&gt;Luckily this programm had an option to disable this check for the parent process.&lt;BR /&gt;&lt;BR /&gt;But i think all you have to do is to make sure that there is a process alive when you logout.&lt;BR /&gt;&lt;BR /&gt;So i would suggest you write a small wraperscript which calls your programm and nothing more. Then you start this script with nohup. Then your script doesn't die and you programm should find its parent process still running.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Stefan</description>
      <pubDate>Mon, 28 May 2001 11:36:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533316#M638212</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2001-05-28T11:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nohup question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533317#M638213</link>
      <description>In a other nohup question I remember the following solution:&lt;BR /&gt;Make a script that first do a sleep for, lets say 100 sec, and then perform your job.&lt;BR /&gt;sometimes the nohup is not working correct and the sleep is is forsing the job to run correctly with "nohup".&lt;BR /&gt;After starting the script, close your terminal. The job is now running as a nohup job and after the sleep your program will run correctly.&lt;BR /&gt;&lt;BR /&gt;Try it.&lt;BR /&gt;</description>
      <pubDate>Wed, 30 May 2001 05:43:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/2533317#M638213</guid>
      <dc:creator>W.L. Alsemgeest</dc:creator>
      <dc:date>2001-05-30T05:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nohup question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/5682923#M638214</link>
      <description>&lt;P&gt;So here's my script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;doit:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/usr/bin/ksh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sleep 10&amp;nbsp; # had to add this to get nohup to work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cat fie | myperlscript &amp;gt; file.out&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;exit&lt;/P&gt;&lt;P&gt;# end of script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do&lt;/P&gt;&lt;P&gt;$ nohup doit &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ exit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I don't put the sleep in, it warns that I have running jobs, I have to type exit again, and nohup kills my process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;myperscript just reads stdin and prints it to stdout adding line breaks every 80 chars after the nearest '&amp;gt;'with no line break.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file (xml) is so huge ( and all one line ) that I can't use sed to do this because it runs out of memory hence the perl script.&amp;nbsp; I am doing nohup, so I can go to bed and get the result in the morning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2012 04:26:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nohup-question/m-p/5682923#M638214</guid>
      <dc:creator>aku76</dc:creator>
      <dc:date>2012-06-07T04:26:26Z</dc:date>
    </item>
  </channel>
</rss>

