linux - Unix shell script error -
if use
ssh -y username@hostname and reach @ host , type x clock & working fine.but if use in script in online like
ssh -y username@hostname x clock & ; it gives me error ksh: x clock: not found.
please suggest.
first, think should xclock , not x clock (no space!). if want execute commands on ssh ideally have along lines:
ssh user@host 'ls -lrt'
Comments
Post a Comment