Validating files using server name and directory

Hi,

I want to check if a file is a regular file or not using server name and file path.

Example: I want to check whether //<server_name>/home/chandan/abc.txt is a regular file or not.

Need your help!!.

Thanks

What OS are you using?
What shell are you using?

OS: Linux version 2.6.18-128.el5
Shell: bash shell

Thanks.

Please use code tags as required by forum rules!

You have to login to the remote server, e.g. using ssh server , and there you can use the bash test for conditional expression, e.g [ -f /home/chandan/abc.txt ]

1 Like