- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nohup - is it working or not???
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
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
04-15-2003 04:04 PM
04-15-2003 04:04 PM
ux-op 11.00; rp2470 machine.
Is there a way to tell if the nnohup command is working properly or not. Are there stty setting s or such that need to be in place?
I have issued a nohup cmd and immediatley it appears the job is being stopped. would someone explain it and how I can stop this from happening. a copy of the command and output follows:
# ps -ef|grep dsm
root 8814 8793 0 08:26:40 pts/tb 0:00 grep dsm (check job not running)
#nohup dsmc schedule >> /dev/null &
[1] 9817 (start the job)
# ps -ef |grep dsm
root 9821 8793 0 09:49:58 pts/tb 0:00 grep dsm
root 9817 8793 0 09:49:51 pts/tb 0:00 dsmc schedule
[1] + Stopped (SIGTTIN) nohup dsmc schedule >> /dev/null &
thanks,
Maria.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 04:25 PM
04-15-2003 04:25 PM
Solution#nohup dsmc schedule 2>/tmp/error_log&
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 06:01 PM
04-15-2003 06:01 PM
Re: nohup - is it working or not???
A good way to test it is to cd to your home directory. Then start a job that takes a while. Let's do a find on a file that you know exists but will take the system some time to find:
find / -name syslog.log
Now to use nohup issue the command like this:
nohup find / -name syslog.log &
The ampersand (&) tells the process to run in the background. In a couple of minutes you will see the "Done xxxx" on the screen where xxxx is the PID of the find command. Then look at nohup.out and you will see the results of the find command. You can even logout before the find is finished and it will still put anything that would have gone to the screen into the nohup.out file.
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 06:54 PM
04-15-2003 06:54 PM
Re: nohup - is it working or not???
To test, try this:
nohup sleep 200 &
Now, logout and login again. Using ps, you'll see the sleep command still running. The termination signal was trapped by nohup and not sent to the sleep process. Now run the same command without nohup:
sleep 200 &
and logout and login again. The sleep command will be gone because the shell will send a terminate signal to all child processes.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 09:25 PM
04-15-2003 09:25 PM
Re: nohup - is it working or not???
For instance, if we issue a 'nohup sar 1 90 &' and exit our session, the nohup dies at the exit.
Hope it helps, and I'll try to keep you posted.
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2003 04:05 PM
04-21-2003 04:05 PM
Re: nohup - is it working or not???
The issue has been cleared now - with the help of Malay's reply. I was supposed to have another process started at the same time to ensure password creatoin/generation was checked for and implemented - no waiting for input from keyboard.!! (Keep it simple, stupid - has proudly become my motto!!!!!)
Thanks everyone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 06:24 AM
04-22-2003 06:24 AM
Re: nohup - is it working or not???
we had the same problem, nohup can't keep a sar session, which make it hard to collect sar data for a long period of time. Anybody else have the same problem? please share your work around ...
thanks,
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 06:44 AM
04-22-2003 06:44 AM
Re: nohup - is it working or not???
I'll update when I get a chance...
Hope it helps
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 07:03 AM
04-22-2003 07:03 AM
Re: nohup - is it working or not???
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 02:01 AM
06-16-2003 02:01 AM
Re: nohup - is it working or not???
My scripts is like this
#!/bin/csh
setenv GWCONFIG $HOME/P1P_mailconfig
nohup mlunxsnd -actap1.mlunxsnd.p1p001 -gctap1 -xsapgw00 &
the mlunxsnd program should run always to enable sap to send mails.
But it keeps on dying.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 04:39 AM
06-16-2003 04:39 AM
Re: nohup - is it working or not???
Bill Hassell, sysadmin