runCasc2dImp
newMod = (new File(testFile)).lastModified; if(newMod>lastMod) waitForUpdate=false;}
sendData(); fireEvent(“Casc2dDone”,ev);}
sendData(){ createContents [OutContents] copy files from casc2Dir to OutFileBase
Class cas2dThread extends Thread{
Process p=Runtime.getRuntime().exec(Casc2dExec);p.waitFor();}}
cT = new cas2c2Thread();cT.start();waitForData();}
receiveData(); moreEvents =nextEvent(lmsStatusFile);
lastMod=(new File(testFile)).lastModified(); if(moreEvents) {
reactivateCasc2d(touchCommand); waitForData();} }
getHTTPfile(ContentsFile,ContentsFileURL);for i=0;i<nfiles; i++){
getHTTPfile(casc2dDir+fn, FileBaseURL+fn);}}}