lfn://lfc-biomed.in2p3.fr/grid/biomed/gwendia/cardiac/gasw/Segmentation.xml
lfn://lfc-biomed.in2p3.fr/grid/biomed/gwendia/cardiac/gasw/mhd2qc.xml
lfn://lfc-biomed.in2p3.fr/grid/biomed/gwendia/cardiac/gasw/mhd2qcAndCannyAndDistMapAndInit_light.xml
Service definition of function ns__GASWexecution
http://egee1.unice.fr/wsdl/gasw_service.wsdl
GASWexecution
Service definition of function ns__GASWexecution
http://egee1.unice.fr/wsdl/gasw_service_10_6.wsdl
GASWexecution
Service definition of function ns__GASWexecution
http://egee1.unice.fr/wsdl/gasw_service_10_6.wsdl
GASWexecution
try{
System.out.println("Transferring LFN "+lfn );
File dir = new File("./data");
if(!dir.exists())
dir.mkdir();
if(lfn.startsWith("lfn://")){
lfn=lfn.replaceAll("lfn://lfc-biomed.in2p3.fr","");
System.out.println("Tweaking lfn to "+lfn);
}
Runtime rt = Runtime.getRuntime();
String [] cmd1 = new String [4];
cmd1[0] = "lcg-cp";
cmd1[1] = "-v";
cmd1[2]="lfn:"+lfn;
cmd1[3]="file:data/"+(new File(lfn)).getName();
Process p1 = rt.exec(cmd1);
p1.waitFor();
BufferedReader in = new BufferedReader(new InputStreamReader(p1.getInputStream()));
String line ="";
while((line=in.readLine())!=null){
System.out.println(line);
}
BufferedReader err = new BufferedReader(new InputStreamReader(p1.getErrorStream()));
String lineerr ="";
while((lineerr = err.readLine())!=null){
System.out.println(lineerr);
}
p1.getErrorStream().close();
p1.getInputStream().close();
p1.getOutputStream().close();
}
catch(Exception e){
e.printStackTrace();
}
String pwd = System.getenv("PWD");
String localMachine = "";
try {
localMachine = java.net.InetAddress.getLocalHost().getCanonicalHostName();
}
catch(java.net.UnknownHostException ex) {
}
out = "https://"+localMachine+"/workflows/"+(new File(pwd)).getName()+"/data/"+(new File(lfn)).getName();
lfn
out
try{
System.out.println("Transferring LFN "+lfn );
File dir = new File("./data");
if(!dir.exists())
dir.mkdir();
if(lfn.startsWith("lfn://")){
lfn=lfn.replaceAll("lfn://lfc-biomed.in2p3.fr","");
System.out.println("Tweaking lfn to "+lfn);
}
Runtime rt = Runtime.getRuntime();
String [] cmd1 = new String [4];
cmd1[0] = "lcg-cp";
cmd1[1] = "-v";
cmd1[2]="lfn:"+lfn;
cmd1[3]="file:data/"+(new File(lfn)).getName();
Process p1 = rt.exec(cmd1);
p1.waitFor();
BufferedReader in = new BufferedReader(new InputStreamReader(p1.getInputStream()));
String line ="";
while((line=in.readLine())!=null){
System.out.println(line);
}
BufferedReader err = new BufferedReader(new InputStreamReader(p1.getErrorStream()));
String lineerr ="";
while((lineerr = err.readLine())!=null){
System.out.println(lineerr);
}
p1.getErrorStream().close();
p1.getInputStream().close();
p1.getOutputStream().close();
}
catch(Exception e){
e.printStackTrace();
}
String pwd = System.getenv("PWD");
String localMachine = "";
try {
localMachine = java.net.InetAddress.getLocalHost().getCanonicalHostName();
}
catch(java.net.UnknownHostException ex) {
}
out = "https://"+localMachine+"/workflows/"+(new File(pwd)).getName()+"/data/"+(new File(lfn)).getName();
lfn
out