- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ssh does not exit
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
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
10-14-2003 01:45 AM
10-14-2003 01:45 AM
I have a script that runs ssh to multiple systems. It does the folowing :
ssh -f -T server1 "/sbin/init.d/logsurfer newstart"
Running it using the -f option at least the prompt gets back, running it without the -f the prompt does not even show up. You have to press
Using the -f option only keeps the processes running in the process table.
Adding an exit to the command also does not work, even adding the exit in the script didn't work.
Anyone a suggestion about how to start a process on the other machine and getting a normal exit ?
I don't like to have many processes running when they already finished their job.
Regs David
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2003 01:48 AM
10-14-2003 01:48 AM
Re: ssh does not exit
backgrounds the ssh.
or
~& backgrounds ssh at logout when waiting for frowarded x11 connections.
I think the first suggestion will work.
You could also simply try normal shell scturctures.
ssh .... &
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2003 02:01 AM
10-14-2003 02:01 AM
Re: ssh does not exit
The problem remains. The process keeps running when using & :
root 24092 1 0 15:58:48 ? 0:00 ssh -f -T server1 /sbin/init.d/logsurfer newstart&
Issue-ing user CTRL+Z I get the following error :
ssh: ~: no address associated with hostname.
I used it pressing
Any other ones?
Regs David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2003 02:51 AM
10-14-2003 02:51 AM
Solutionrecall something: the real problem is that logsurfer keeps the stdin open, and do not really release it.
How to trick:
- use the at command to start the logsurfer
- write a wrapper script that starts in bg the logsurfer
- and so on.....
I used the "at" trick with the listener for oracle and worked well.
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2003 06:33 PM
10-15-2003 06:33 PM
Re: ssh does not exit
Terrific answer !!!
This is the solution :
>
ssh -f -T server1 "/sbin/init.d/logsurfer newstart"
>
>
Becomes
<
<
ssh -f -T 2n3 "echo \"/sbin/init.d/logsurfer newstart\" | at now"
>
>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2003 06:34 PM
10-15-2003 06:34 PM
Re: ssh does not exit
2n3=server1 :)