- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ssh hanging with nohup
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
04-08-2004 12:16 AM
04-08-2004 12:16 AM
I use ssh.
When i try to execute a script shell with nohup 'command' &, the ssh is hanging.
( it seem waiting the end of process )
I tried nohup sleep 10 &
the ssh is terminated after 10 sec.
How can i detach a process with nohup and ssh ?
regards.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2004 12:21 AM
04-08-2004 12:21 AM
Re: ssh hanging with nohup
In your script what exactly you do?
Something like -- ssh host "command"
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2004 12:28 AM
04-08-2004 12:28 AM
Re: ssh hanging with nohup
the command is :
ssh -l i2admin b5ora2 /I2/Test/test.sh
on test.sh, i have :
nohup sleep.sh &
on sleep.sh i have
sleep 10
The ssh is waiting the end of sleep.sh
So, i have the solution :
on sleep.sh :
sleep 10 < /dev/null > /dev/null 2>&1 &
--> ssh is terminated immediatly.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2004 12:44 AM
04-08-2004 12:44 AM
Re: ssh hanging with nohup
With that you should get command prompt after test.sh ends. (after 1- sec) Is that the case?
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2004 01:09 AM
04-08-2004 01:09 AM
Re: ssh hanging with nohup
before the modification on sleep.sh (append the follow < /dev/null > /dev/null 2>&1 & )
i received the command prompt after 10 seconds.
Now, i receive the command prompt immediatly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2004 01:14 AM