<?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: &amp;quot;nohup&amp;quot; command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791884#M79952</link>
    <description>Yes, nohup will keep the programs running even if you logout the session. Do you just want to print to a serial printer?</description>
    <pubDate>Thu, 22 Aug 2002 14:47:15 GMT</pubDate>
    <dc:creator>Sajid_1</dc:creator>
    <dc:date>2002-08-22T14:47:15Z</dc:date>
    <item>
      <title>"nohup" command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791880#M79948</link>
      <description>Is the nohup command supposed to stay active after a user logs out? If I type the following command it doesn't stick when the user logs out.&lt;BR /&gt;&lt;BR /&gt;(nohup stty 19200 opost onlcr parenb parodd cs8 ixon -istrip clocal tab3; sleep 200000000)&lt;BR /&gt;If anyone has ideas on keeping serial ports open by a different means than the command I issued earlier, I would be glad to give it a try. We have to print checks directly to a device, in case anyone's wondering why I'm bypassing the the print spooler.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Brad Woolard</description>
      <pubDate>Thu, 22 Aug 2002 14:29:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791880#M79948</guid>
      <dc:creator>Brad Woolard</dc:creator>
      <dc:date>2002-08-22T14:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: "nohup" command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791881#M79949</link>
      <description>We have a similar script for same reason.&lt;BR /&gt;It works fine.&lt;BR /&gt;What is the pb ?&lt;BR /&gt;&lt;BR /&gt;nohup(1)                                                           nohup(1)&lt;BR /&gt;&lt;BR /&gt; NAME&lt;BR /&gt;      nohup - run a command immune to hangups&lt;BR /&gt;&lt;BR /&gt; SYNOPSIS&lt;BR /&gt;      nohup command [arguments]&lt;BR /&gt;&lt;BR /&gt; DESCRIPTION&lt;BR /&gt;      nohup executes command with hangups and quits ignored.  If output is&lt;BR /&gt;      not redirected by the user, both standard output and standard error&lt;BR /&gt;      are sent to nohup.out.  If nohup.out is not writable in the current&lt;BR /&gt;      directory, output is redirected to $HOME/nohup.out; otherwise, nohup&lt;BR /&gt;      fails. If a file is created, the file's permission bits will be set to&lt;BR /&gt;      S_IRUSR | S_IWUSR.&lt;BR /&gt;&lt;BR /&gt;      If output from nohup is redirected to a terminal, or is not redirected&lt;BR /&gt;      at all, the output is sent to nohup.out.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Thu, 22 Aug 2002 14:35:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791881#M79949</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2002-08-22T14:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: "nohup" command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791882#M79950</link>
      <description>The problem is it hangs up when the user logs out. &lt;BR /&gt;&lt;BR /&gt;I have to kill the shell process for the user's nohup command to stay intact. If I logout the user that issued the command the printer goes haywire again and prints gibberish.&lt;BR /&gt;&lt;BR /&gt;-Brad</description>
      <pubDate>Thu, 22 Aug 2002 14:41:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791882#M79950</guid>
      <dc:creator>Brad Woolard</dc:creator>
      <dc:date>2002-08-22T14:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: "nohup" command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791883#M79951</link>
      <description>I think you nohup the stty but *NOT* the sleep command...&lt;BR /&gt;review your command&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Thu, 22 Aug 2002 14:45:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791883#M79951</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2002-08-22T14:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: "nohup" command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791884#M79952</link>
      <description>Yes, nohup will keep the programs running even if you logout the session. Do you just want to print to a serial printer?</description>
      <pubDate>Thu, 22 Aug 2002 14:47:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791884#M79952</guid>
      <dc:creator>Sajid_1</dc:creator>
      <dc:date>2002-08-22T14:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: "nohup" command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791885#M79953</link>
      <description>Yes, I owuld like to print to the serial printer directly, b/c of the program that utilizes the printer dictactes direct device communication.&lt;BR /&gt;&lt;BR /&gt;-Brad</description>
      <pubDate>Thu, 22 Aug 2002 14:49:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791885#M79953</guid>
      <dc:creator>Brad Woolard</dc:creator>
      <dc:date>2002-08-22T14:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: "nohup" command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791886#M79954</link>
      <description>Here's one way to solve it using a small bit of C that I have used for over 20 years to hold a serial port open. I spent about 2 minutes modifying it so that it will compile with the bundled (K &amp;amp; R) C compiler (in case you don't have anything better).&lt;BR /&gt;&lt;BR /&gt;I would add this to /sbin/init.d/Sxxx. You can follow this up will a stty command (preferably in background in the same /sbin/init.d script)to set any other attributes you like.&lt;BR /&gt;&lt;BR /&gt;Compile it like this:&lt;BR /&gt;&lt;BR /&gt;cc holdport.c -o holdport&lt;BR /&gt;&lt;BR /&gt;That will produce a 'holdport' executable.&lt;BR /&gt;&lt;BR /&gt;Invoke it as simply 'holdport' for full usage but typically it would be:&lt;BR /&gt;&lt;BR /&gt;holdport -t /dev/c2a2_lp -s 19200&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Aug 2002 14:56:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791886#M79954</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-08-22T14:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: "nohup" command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791887#M79955</link>
      <description>hi again,&lt;BR /&gt;&lt;BR /&gt;This document has better options with nohup:&lt;BR /&gt;&lt;A href="http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000047674073" target="_blank"&gt;http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000047674073&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Doc ID - S3100002427</description>
      <pubDate>Thu, 22 Aug 2002 14:57:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791887#M79955</guid>
      <dc:creator>Sajid_1</dc:creator>
      <dc:date>2002-08-22T14:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: "nohup" command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791888#M79956</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;Another document that will do the same function:&lt;BR /&gt;&lt;A href="http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000047992625" target="_blank"&gt;http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000047992625&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Doc ID - KBRC00000859</description>
      <pubDate>Thu, 22 Aug 2002 14:59:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791888#M79956</guid>
      <dc:creator>Sajid_1</dc:creator>
      <dc:date>2002-08-22T14:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: "nohup" command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791889#M79957</link>
      <description>Hi Brad,&lt;BR /&gt;&lt;BR /&gt; Is there a reason why this can't be setup in /etc/inittab - specifically to use the respawn feature?&lt;BR /&gt;&lt;BR /&gt;Could look something like:&lt;BR /&gt; &lt;BR /&gt;cklp:23:respawn:/usr/bin/stty 19200 opost onlcr parenb parodd cs8 ixon -istrip clocal tab3 &amp;lt; /dev/c2a2_lp&lt;BR /&gt;&lt;BR /&gt;I've never set something up like this, but in theory I think it should work.&lt;BR /&gt;&lt;BR /&gt;See man inittab for further details.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 22 Aug 2002 15:08:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791889#M79957</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-08-22T15:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: "nohup" command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791890#M79958</link>
      <description>Awesome responses! I will have to try all of these when I get time to do the testing. We're starting a check run now, but I'm sure when I do try the hold port executable, I will be in business.&lt;BR /&gt;&lt;BR /&gt;Thanks again to all,&lt;BR /&gt;&lt;BR /&gt;Brad Woolard</description>
      <pubDate>Thu, 22 Aug 2002 15:18:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791890#M79958</guid>
      <dc:creator>Brad Woolard</dc:creator>
      <dc:date>2002-08-22T15:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: "nohup" command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791891#M79959</link>
      <description>It's been many years since I abandoned the "nohup" command. I NEVER got it to work&lt;BR /&gt;correctly under ANY circumstances. Instead I now use "at", which ALWAYS has work great for me and is totally immune to hang-ups.</description>
      <pubDate>Fri, 23 Aug 2002 17:24:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-nohup-quot-command/m-p/2791891#M79959</guid>
      <dc:creator>Todd Larchuk</dc:creator>
      <dc:date>2002-08-23T17:24:29Z</dc:date>
    </item>
  </channel>
</rss>

