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

Re: ssh'ing into DB3.0 for restart?



On Mon, 29 Jul 2002 01:19:34 +0200 martin f krafft <madduck@debian.org> wrote: 8-§  > also sprach Johannes Graumann <graumann@its.caltech.edu> [2002.07.29.0214 +0200]:
8-§  > > I followed this up and behold: if I say on host01 'ssh -2 -c 3des -l root
8-§  > > host02 echo $PATH', I get the PATH of host01 - really weired. Well,
8-§  > > following some intuition I tryed 'ssh -2 -c3des -l root host02
8-§  > > /sbin/reboot' and that works!

8-§  > $PATH gets evaluated in the local shell, so you are asking to remote
8-§  > system to echo that. Escape the $ and it'll work:
8-§  > 
8-§  >   ssh -2 -c 3des -l root host02 echo \$PATH
8-§  > 
Why don't you try "shutdown -r 0" instead of "reboot"?

ste


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: