Dear All,
I am trying to test if a file exists or not in a remote server. I have 4 
processors on my disposal in my laptop. Here is what I am trying to do:
for  value  in 
{10..20}do#*************************************************************************************************seq
 -w 1 1 100 | parallel  -j+0  wget ${ftp_site}/$value/{}/{}.F >& /dev/null  && 
echo  Y >> tmp || echo  N  >> tmp
          read test < tmp         if [ $test = "Y"  ];then            echo "to 
an output  file, "temp.$value.{}""         
fidone#*************************************************************************************************
If the file exists in the remote server, the value in "tmp" should get "Y" , in 
that case the file is saved to a file.  My question is how to test the 
existence of all the 4 processors at the same time ?
"temp.$value.{}"  "{}" should take the sequence that comes from "seq -w 1 1 100"
Any help is very much appreciated.
Kind regardsYacob

Reply via email to