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

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



On Mon, Feb 06, 2023 at 04:37:50PM -0600, David Wright wrote:
> On Mon 06 Feb 2023 at 19:54:20 (+0000), Ottavio Caruso wrote:
> > Am 06/02/2023 um 19:05 schrieb Greg Wooledge:
> > > ssh LAP2 'type hibernate.sh; echo "$PATH"'
> > 
> > _Touché !_ You nailed it:
> > 
> > 
> > $ ssh LAP2 'type hibernate.sh; echo "$PATH"'
> > bash: line 1: type: hibernate.sh: not found
> > /usr/local/bin:/usr/bin:/bin:/usr/games
> 
> On Mon 06 Feb 2023 at 10:38:56 (+0000), Ottavio Caruso wrote:
> > Am 04/02/2023 um 15:15 schrieb Greg Wooledge:
> > > On Sat, Feb 04, 2023 at 02:13:54PM +0000, Ottavio Caruso wrote:
> > > > > > $ ssh LAP2 hibernate.sh # it works too
> 
> Why doesn't   ssh LAP2 'type hibernate.sh'
> work when   ssh LAP2 hibernate.sh   does?

Seems pretty obvious to me.  It was a false claim all along.

They actually did:

lap1$ ssh lap2
lap2$ hibernate.sh

But they SAID they did:

lap1$ ssh lap2 hibernate.sh

And now they know that these two things are not equivalent, so at least
there's one small victory today.


Reply to: