![]() |
|
|
|
|
|
|
2
14th October 15:10
External User
Posts: 1
|
Hi Martin,
just a quick thought, is there anything unusual in your .bashrc that might cause this ? On my linux box it is executed. HTH, Jürgen -------- Original Message -------- Subject: [Info-ingres] problems with ssh Date: Tue, 21 Nov 2006 12:00:13 -0000 From: martin.bowes@ctsu.ox.ac.uk To: info-ingres@cariboulake.com Hi Everyone, A little off topic but,.... I have a job which automates the transfer of journals checkpoints etc from one host to another as part of my Disaster Plans. It relies on ssh between the hosts involved. So I've setup ssh and it works perfectly - interactively. And in most cases it will work perfectly well in batch mode between most hosts. But every now and then the process stalls in the batch mode. That is, the command seems to have functioned - but just wont terminate and leaves a process hanging around. I've tried wrapping the command in 'markers' to try and force output and hopefully close the channel. I've put in place Perl sig alarm processing but it just won't stop the process. A typical command would read /usr/bin/ssh -x -T a_host 'echo "";infodb my_database;echo "SSH one"' 2>&1 </dev/nullAny ideas? Martin Bowes -- Random Duckman Quote #97: Duckman: You got anymore of those glues? Cornfed: Clues. Duckman: I'm one letter off, crucify me! _______________________________________________ Info-ingres mailing list Info-ingres@cariboulake.com http://mailman.cariboulake.com/mailm...py/info-ingres |
|
|
5
14th October 15:10
External User
Posts: 1
|
Marty
I think you'll find that there is a utility called scp that uses the ssh protocol to copy files between machines... Good luck Fred -- _-_|\ Frederick W. Myers fred@dsdata.com.au / \ 187 Mondurup St Mt Barker WA 6324 Australia \*.-._/ v http://www.dsdata.com.au |
|
|
7
14th October 15:11
External User
Posts: 1
|
Martin,
Is the server extremely loaded? Are the MANY ssh commands starting at once. We have seen problems with this on Solaris machines. I've also searched the FAQ ... found some food for thought: http://www.openssh.org/faq.html#3.10 http://www.openssh.org/faq.html#3.11 Two things to try: 1) Add the -vvv flag and don't redirect stderr to stdout. Instead let your program use stdout, as usual, and append stderr to some file: echo "*** Calling SSH at $(/bin/date) ***" >>/tmp/sshdebug.log /usr/bin/ssh -vvv -x -T a_host 'echo "";infodb my_database;echo "SSH one"' 2>>/tmp/sshdebug.log </dev/nullecho "*** Finished calling SSH at $(/bin/date) ***" >>/tmp/sshdebug.log 2) Check the SSHD log on the server for errors. 3) Try to run pretty modern versions (4.2 or above) on both the client and server. Standard Linux distros are shipped with ancient version of SSH, unfortunately. Cheers, Mike Leo P.S. I'm a recovering tsch-er myself. Unify your life ... bash. |
|
|
8
14th October 15:11
External User
Posts: 1
|
Hi Marty,
Have you checked to see if you already have infodb running? We experienced installation hangs when running infodb | other_commands | more It locked up infodb, checkpoints and other installation level commands until the more command was completed. Paul -----Original Message----- From: info-ingres-admin@cariboulake.com [mailto:info-ingres-admin@cariboulake.com] On Behalf Of Michael Leo Sent: Wednesday, 22 November 2006 1:39 AM To: martin.bowes@ctsu.ox.ac.uk Cc: info-ingres@cariboulake.com Subject: Re: [Info-ingres] problems with ssh Martin, Is the server extremely loaded? Are the MANY ssh commands starting at once. We have seen problems with this on Solaris machines. I've also searched the FAQ ... found some food for thought: http://www.openssh.org/faq.html#3.10 http://www.openssh.org/faq.html#3.11 Two things to try: 1) Add the -vvv flag and don't redirect stderr to stdout. Instead let your program use stdout, as usual, and append stderr to some file: echo "*** Calling SSH at $(/bin/date) ***" >>/tmp/sshdebug.log /usr/bin/ssh -vvv -x -T a_host 'echo "";infodb my_database;echo "SSH one"' 2>>/tmp/sshdebug.log </dev/nullecho "*** Finished calling SSH at $(/bin/date) ***" 2) Check the SSHD log on the server for errors. 3) Try to run pretty modern versions (4.2 or above) on both the client and server. Standard Linux distros are shipped with ancient version of SSH, unfortunately. Cheers, Mike Leo P.S. I'm a recovering tsch-er myself. Unify your life ... bash. _______________________________________________ Info-ingres mailing list Info-ingres@cariboulake.com http://mailman.cariboulake.com/mailm...py/info-ingres |
|
|
|