- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Nohup question
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
Discussions
Discussions
Forums
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
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
тАО05-27-2001 11:43 PM
тАО05-27-2001 11:43 PM
nohup jobname parameter_file &
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?
Thanks
Carlo
Solved! Go to Solution.
- Tags:
- nohup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2001 12:01 AM
тАО05-28-2001 12:01 AM
Re: Nohup question
your shell warns you that you have running jobs. But when you exit your nohup jobs should keep on running. No special configuring required.
Put a sleep command in your script, and "ps -ef | grep sleep" after exiting should show you job.
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2001 12:04 AM
тАО05-28-2001 12:04 AM
Re: Nohup question
Vincent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2001 12:10 AM
тАО05-28-2001 12:10 AM
Re: Nohup question
Carlo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2001 01:38 AM
тАО05-28-2001 01:38 AM
Re: Nohup question
Carlo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2001 01:39 AM
тАО05-28-2001 01:39 AM
Re: Nohup question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2001 02:08 AM
тАО05-28-2001 02:08 AM
Re: Nohup question
Any idea what I should do with its nice value once I know it?
Carlo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2001 02:30 AM
тАО05-28-2001 02:30 AM
SolutionI've never started a C-prog through nohup directly. I've always used a surrounding shell script.
Maybe, just maybe, a C-prog stops if it's detached from it's parent shell; just a (very very) wild guess.
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.
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2001 04:11 AM
тАО05-28-2001 04:11 AM
Re: Nohup question
You may also try redirecting stdin :
nohup your_prog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2001 04:36 AM
тАО05-28-2001 04:36 AM
Re: Nohup question
Luckily this programm had an option to disable this check for the parent process.
But i think all you have to do is to make sure that there is a process alive when you logout.
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.
Hope this helps. Stefan