Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
en:documentation:tutorials:submit:jobsequentielbash [2018/10/04 17:08] – [for sequential programs (shell bash)] cicaluga | en:documentation:tutorials:submit:jobsequentielbash [2020/05/13 14:58] – fleroux | ||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
- | The batch system currently used at the PSMN is Sun Grid Engine (SGE). Its documentation is [[documentation: | + | The batch system currently used at the PSMN is Sun Grid Engine (SGE). Its documentation is [[documentation: |
Ligne 62: | Ligne 62: | ||
- | Travailler dans le /scratch | + | Work in the |
+ | <code bash script_seq> | ||
#!/bin/bash | #!/bin/bash | ||
# | # | ||
Ligne 84: | Ligne 85: | ||
cd ${SGE_O_WORKDIR} | cd ${SGE_O_WORKDIR} | ||
### configurer l' | ### configurer l' | ||
- | + | ||
module load GCC/ | module load GCC/ | ||
- | + | ||
### definition SCRATCHDIR | ### definition SCRATCHDIR | ||
SCRATCHDIR=/ | SCRATCHDIR=/ | ||
### verif SCRATCHDIR | ### verif SCRATCHDIR | ||
echo " | echo " | ||
- | + | ||
### creation du repertoire de travail dans le /scratch | ### creation du repertoire de travail dans le /scratch | ||
if [[ ! -d " | if [[ ! -d " | ||
Ligne 97: | Ligne 98: | ||
/ | / | ||
fi | fi | ||
- | + | ||
### copie des fichiers sources dans le /scratch | ### copie des fichiers sources dans le /scratch | ||
/bin/cp ${SGE_O_WORKDIR}/ | /bin/cp ${SGE_O_WORKDIR}/ | ||
Ligne 116: | Ligne 117: | ||
# fin | # fin | ||
+ | </ | ||
====== Surveiller un job ====== | ====== Surveiller un job ====== | ||
Voir [[documentation: | Voir [[documentation: |