[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SOLVED Re: Cannot rum multiple command on remote machine via SSH



Am 07/02/2023 um 16:12 schrieb David Wright:
On Tue 07 Feb 2023 at 10:30:22 (+0000), Ottavio Caruso wrote:
Am 06/02/2023 um 22:43 schrieb Greg Wooledge:
Seems pretty obvious to me.  It was a false claim all along.

How do you get to that statement?

To show it wasn't a false claim, you have to demonstrate that

   $ ssh LAP2 hibernate.sh

works (as posted 4 Feb 2023 11:24:37) whereas

   $ ssh LAP2 'type hibernate.sh'

doesn't (as posted 6 Feb 2023 19:54:20). You haven't done that yet.

Oops! Caught red handed! Checking my .bash_history, I originally typed:

$ ssh LAP2 opt/bin/hibernate.sh

which worked because it's a relative PATH to my HOME directory.

Sorry for the unnecessary noise.


The reason I cannot just ssh into LAP2 and then run hibernate.sh from
the shell is because, if I do, I get a dangling zombie ssh shell that
freezes my LAP1. (Now this would be a topic for another thread, but I
don't care as LAP1 is almost dead and I want to squeeze it until it's
gone).

Have you tried typing these two characters into your frozen ssh:

~ .


I'll try that. Thanks.

--
Ottavio Caruso

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Reply to: