SSH and remote commands
From: Glen (pondapple@earthlink.net)
Date: 04/23/03
- Next message: Alex: "Re: Non-interactive SSH Login."
- Previous message: Mick Ohrberg: "OpenSSH 3.6.1p1 and AIX 4.3"
- Next in thread: Dimitri Maziuk: "Re: SSH and remote commands"
- Reply: Dimitri Maziuk: "Re: SSH and remote commands"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: pondapple@earthlink.net (Glen) Date: 23 Apr 2003 12:49:13 -0700
I know that this question has been asked many times because I have
searched quite a bit on the problem, but I am still unable to figure
out how to get the script to work correctly so here it goes anyway.
I have a script to run tripwire remotely an several hosts.
Once the ssh line is ran, the ssh session never closes completely so
my script does not continue.
I have tried the FAQ and these example redirections (< /dev/null >&
/dev/null
ssh remote.machine command >/dev/null </dev/null 2>/dev/null
< /dev/null > /dev/null 2>&1 & at the end of the ssh command) with no
success.
Here is the command I am running:
ssh -l root $machine "umask 077 ; cd ${remote_tripdir};
${remote_tripdir}/tripwire -initialize -c ${remote_tripdir}/tw.config
2>&1 | tee ${remote_tripdir}/initoutput >> /dev/null"
I need the tripwire remote command to finish before going on to the
next command in the script because the next line copies output from
the remote command to someplace else.
Client:OpenSSH_2.9p2, SSH protocols 1.5/2.0, OpenSSL 0x0090602f
Server: OpenSSH_2.5.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090600f
Can anyone help me work through this?
Any help is appreciated.
Thanks
- Next message: Alex: "Re: Non-interactive SSH Login."
- Previous message: Mick Ohrberg: "OpenSSH 3.6.1p1 and AIX 4.3"
- Next in thread: Dimitri Maziuk: "Re: SSH and remote commands"
- Reply: Dimitri Maziuk: "Re: SSH and remote commands"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|