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

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -