- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- remsh not backgrounding with nohup and "&" on 11....
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
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
10-18-2004 04:59 AM
10-18-2004 04:59 AM
when trying to spwan off a background process that won't die when you exit. example:
exec nohup
That the script waits till the process is done.
This is only when trying to remsh to an HP-UX
11.0 OS. HP-UX 11i does not have this problem.
The process is backgrounded and the remsh exits.
Here is a simple example:
Script A:
#!/bin/ksh
# scripta
remsh $1 ./scriptb
Script B:
#!/bin/ksh
#scriptb
exec nohup sleep 10 &
Run script A to hp-ux 11.0 and 11i system:
scripta
scripta
Can someone tell me why this behavior is different between 11.0 and 11i?
I need to be able to remsh into serveral
systems and run a continual process in the backgrond.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2004 05:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2004 06:05 AM
10-18-2004 06:05 AM
Re: remsh not backgrounding with nohup and "&" on 11.0
Scott got it. Use '-n' option with the command as it redirects input from /dev/null instead of the shell to wait for input from the keyboard.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 08:01 PM
10-19-2004 08:01 PM
Re: remsh not backgrounding with nohup and "&" on 11.0
The current behaviour (recent r-commands patches installed) is:
- wait (default)
- don't wait (if remshd is called wirth new -m option)
So I suggest to simply install recent patches and then use -m to get the desired behaviour.
11.00: PHNE_23003
11.11: PHNE_30433
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 08:43 PM
10-19-2004 08:43 PM
Re: remsh not backgrounding with nohup and "&" on 11.0
You can try as,
remsh
Or change the code of script B as,
#!/bin/ksh
#scriptb
exec nohup sleep 10 1>/tmp/log 2>&1 &
Else simply,
#!/bin/ksh
#scriptb
exec nohup sleep 10 1>&- 2>&- &
so that it will not expect user input to upon completion of sleep 10 execution.
HTH.