- 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
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
тАО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:12 PM
тАО04-15-2003 04:12 PM
SolutionYour nohup is working just fine. The problem is that your process is expecting to read something from standard input and it no longer controls the terminal, which is what generates the SIGTTIN signal. My guess is that your dsmc program is prompting for some kind of input and is causing a problem when it tries to run in background. Your process either needs to run without looking for input, or else you'll need to figure out what it needs and pass it the input somehow.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2003 04:16 PM
тАО04-15-2003 04:16 PM
Re: nohup - is it working or not???
Try running the script like this. Is there some sort of input that the command/script is requesting?
$ nohup script /dev/null 2>&1 &
Regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2003 04:17 PM
тАО04-15-2003 04:17 PM
Re: nohup - is it working or not???
#nohup dsmc schedule >> /dev/null < /tmp/inputfile &
and create your /tmp/inputfile with the number or letter by itself on the first line of this file followed by a carriage return.
Hope this helps.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2003 04:30 PM
тАО04-15-2003 04:30 PM
Re: nohup - is it working or not???
Maria