SCRUTE(fileNameToExecute) ;
// Le /tmp n'est pas le meme d'un noeud a un autre ===>
//string DirForTmpFiles = string("/tmp/")+string(getenv("USER"))+string("/") ;
- string DirForTmpFiles = string(getenv("HOME"))+string("/Batch/") ;
+ string DirForTmpFiles = string("Batch/") ;
Batch::Date date = Batch::Date(time(0)) ;
std::string thedate = date.str() ;
int lend = thedate.size() ;
tempOutputFile << "#! /bin/sh -f" << endl ;
tempOutputFile << "cd " ;
tempOutputFile << resInfo.AppliPath << endl ;
- tempOutputFile << "export PYTHONPATH=" ;
+ tempOutputFile << "export PYTHONPATH=~/" ;
tempOutputFile << DirForTmpFiles ;
tempOutputFile << ":$PYTHONPATH" << endl ;
tempOutputFile << "if test $SLURM_PROCID = 0; then" << endl ;
tempOutputFile << " done" << endl ;
tempOutputFile << " sleep 1" << endl ;
tempOutputFile << " ./runSession waitContainers.py $arglist" << endl ;
- tempOutputFile << " ./runSession python " << DirForTmpFiles << "/" << FileNameToExecute << ".py" << endl;
+ tempOutputFile << " ./runSession python ~/" << DirForTmpFiles << "/" << FileNameToExecute << ".py" << endl;
tempOutputFile << "else" << endl ;
tempOutputFile << " sleep 1" << endl ;
tempOutputFile << " ./runSession waitNS.py" << endl ;
tempOutputFile << "#BSUB -n " ;
tempOutputFile << NumberOfProcessors << endl ;
tempOutputFile << "#BSUB -o runSalome.log%J" << endl ;
- tempOutputFile << "mpirun -srun " ;
+ tempOutputFile << "mpirun -srun ~/" ;
tempOutputFile << DirForTmpFiles ;
tempOutputFile << "/runSalome_" ;
tempOutputFile << FileNameToExecute ;
const ParserResourcesType& resInfo = _resourcesList[machine];
resInfo.Print() ;
tempOutputFile << "#! /bin/sh -f" << endl ;
- tempOutputFile << "bsub < " ;
+ tempOutputFile << "bsub < ~/" ;
tempOutputFile << DirForTmpFiles ;
tempOutputFile << "/" ;
tempOutputFile << FileNameToExecute ;