parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to test the output of gnu parallel


From: yacob sen
Subject: How to test the output of gnu parallel
Date: Tue, 18 Sep 2012 00:22:37 -0700 (PDT)

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.{}""
         fi
done
#*************************************************************************************************

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 regards
Yacob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]