[Solved] Know the existance of a file on remote server

In a Korn shell, I want to test whether a file exists on a remote shell. If I use

ssh <Remote server> ls abc

It gives file proper result, but unable to capture in the script.

Any help?

Thanks

Tried:

ssh <hostname> ls >$HOME/ssh_out.log

yet?

1 Like

Thanks. I was missing $HOME.

You welcome...