- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- "nohup" command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 07:29 AM
08-22-2002 07:29 AM
(nohup stty 19200 opost onlcr parenb parodd cs8 ixon -istrip clocal tab3; sleep 200000000)
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.
Thanks,
Brad Woolard
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 07:35 AM
08-22-2002 07:35 AM
Re: "nohup" command
It works fine.
What is the pb ?
nohup(1) nohup(1)
NAME
nohup - run a command immune to hangups
SYNOPSIS
nohup command [arguments]
DESCRIPTION
nohup executes command with hangups and quits ignored. If output is
not redirected by the user, both standard output and standard error
are sent to nohup.out. If nohup.out is not writable in the current
directory, output is redirected to $HOME/nohup.out; otherwise, nohup
fails. If a file is created, the file's permission bits will be set to
S_IRUSR | S_IWUSR.
If output from nohup is redirected to a terminal, or is not redirected
at all, the output is sent to nohup.out.
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 07:41 AM
08-22-2002 07:41 AM
Re: "nohup" command
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.
-Brad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 07:45 AM
08-22-2002 07:45 AM
Re: "nohup" command
review your command
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 07:47 AM
08-22-2002 07:47 AM
Re: "nohup" command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 07:49 AM
08-22-2002 07:49 AM
Re: "nohup" command
-Brad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 07:56 AM
08-22-2002 07:56 AM
SolutionI 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.
Compile it like this:
cc holdport.c -o holdport
That will produce a 'holdport' executable.
Invoke it as simply 'holdport' for full usage but typically it would be:
holdport -t /dev/c2a2_lp -s 19200
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 07:57 AM
08-22-2002 07:57 AM
Re: "nohup" command
This document has better options with nohup:
http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000047674073
Doc ID - S3100002427
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 07:59 AM
08-22-2002 07:59 AM
Re: "nohup" command
Another document that will do the same function:
http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000047992625
Doc ID - KBRC00000859
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 08:08 AM
08-22-2002 08:08 AM
Re: "nohup" command
Is there a reason why this can't be setup in /etc/inittab - specifically to use the respawn feature?
Could look something like:
cklp:23:respawn:/usr/bin/stty 19200 opost onlcr parenb parodd cs8 ixon -istrip clocal tab3 < /dev/c2a2_lp
I've never set something up like this, but in theory I think it should work.
See man inittab for further details.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 08:18 AM
08-22-2002 08:18 AM
Re: "nohup" command
Thanks again to all,
Brad Woolard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2002 10:24 AM
08-23-2002 10:24 AM
Re: "nohup" command
correctly under ANY circumstances. Instead I now use "at", which ALWAYS has work great for me and is totally immune to hang-ups.