I would like to check if a certain file exists on the remote host. I tried this:
$ if [ ssh user@localhost -p 19999 -e /home/user/Dropbox/path/Research_and_Devel
This also works :
if ssh user@ip "[ -s /path/file_name ]" ;then status=RECEIVED ; else status=MISSING ; fi