Hi, can anyone help me please,
I am using rsh to log-in to a remote server - I can login in fine and issue commmands fine but I am having trouble with my syntax. I want to check if a file exists on a remote server something like this:
rsh -l myname myhost 'if -f path/to/file' return 1 else return 0;
I am very new at writing shell scripts!
Any help would be most appreciated.
Thanks
Greenster
I am using rsh to log-in to a remote server - I can login in fine and issue commmands fine but I am having trouble with my syntax. I want to check if a file exists on a remote server something like this:
rsh -l myname myhost 'if -f path/to/file' return 1 else return 0;
I am very new at writing shell scripts!
Any help would be most appreciated.
Thanks
Greenster