I am reading a list of file names from a config file. using a for loop im selecting each file in the list and then want to search for the file on a remote server.
for file in config
do
**search for file at {remoteserver}**
    returnStatus=$?
    if [ returnStatus = 0 ]; then
         email that file was found.
    fi
done  
the search for file at the remote server is the part troubling me. Any help is appreciated,
 
     
     
    