- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to properly use nohup?
Operating System - HP-UX
1753554
Members
4817
Online
108795
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО09-16-2003 06:46 AM
тАО09-16-2003 06:46 AM
Re: How to properly use nohup?
Jorge,
We had problems identical to yours earlier this year and we opened an issue with HP about it. I was even able to duplicate the issue with sar. (This was on HPUX 11.0, by the way.) The issue got escalated back to the lab, and they said they would have to do a defect fix for nohup. We haven't seen it yet.
I found that if you invoked another shell, then ran the nohup script, then exited your child shell, the nohup would continue to run properly.
sh
nohup sar -v 5 5 &
exit
This would always make nohup work properly. We modified the script we were having trouble with, and haven't really thought about it for months. Is it possible for you to do something like that?
Hope it helps
John
We had problems identical to yours earlier this year and we opened an issue with HP about it. I was even able to duplicate the issue with sar. (This was on HPUX 11.0, by the way.) The issue got escalated back to the lab, and they said they would have to do a defect fix for nohup. We haven't seen it yet.
I found that if you invoked another shell, then ran the nohup script, then exited your child shell, the nohup would continue to run properly.
sh
nohup sar -v 5 5 &
exit
This would always make nohup work properly. We modified the script we were having trouble with, and haven't really thought about it for months. Is it possible for you to do something like that?
Hope it helps
John
Spoon!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2003 07:09 AM
тАО09-16-2003 07:09 AM
Re: How to properly use nohup?
Hello everyone,
Thanks for your help.
Steve! THANKS! That was it! Redirecting stderr!!!
It seems that nohup will only redirect stdout (to nohup.out) but it doesn't redirect stderr.
I ran the script as:
nohup /home/oracle/import.sh 1> out.log 2> out.err
and it worked! Thanks a lot!
Thanks for your help.
Steve! THANKS! That was it! Redirecting stderr!!!
It seems that nohup will only redirect stdout (to nohup.out) but it doesn't redirect stderr.
I ran the script as:
nohup /home/oracle/import.sh 1> out.log 2> out.err
and it worked! Thanks a lot!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2003 07:09 AM
тАО09-16-2003 07:09 AM
Re: How to properly use nohup?
Hello everyone,
Thanks for your help.
Steve! THANKS! That was it! Redirecting stderr!!!
It seems that nohup will only redirect stdout (to nohup.out) but it doesn't redirect stderr.
I run the script as:
nohup /home/oracle/import.sh 1> out.log 2> out.err
and it worked! Thanks a lot!
Thanks for your help.
Steve! THANKS! That was it! Redirecting stderr!!!
It seems that nohup will only redirect stdout (to nohup.out) but it doesn't redirect stderr.
I run the script as:
nohup /home/oracle/import.sh 1> out.log 2> out.err
and it worked! Thanks a lot!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2003 02:34 AM
тАО09-18-2003 02:34 AM
Re: How to properly use nohup?
One other problem caused by backgrounding jobs is when the process is attempting to talk directly to a psuedo tty device. A good demonstration of this is if you "nohup" the cu command. It will seem to keep running but the number of OS interrupts will go through the roof, as the process spirals out of control.
Great care should always be excerised when backgrounding any interactive program, as the results can be quite spectacular, and in extreme cases can even crash your entire system.
Great care should always be excerised when backgrounding any interactive program, as the results can be quite spectacular, and in extreme cases can even crash your entire system.
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP