| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
# prologue arguments |
| 4 |
# Script is run under uid of oar who is sudo |
| 5 |
# argv[1] is the jobid |
| 6 |
# argv[2] is the user's name |
| 7 |
# argv[3] is the file which contains the list of nodes used |
| 8 |
# argv[4] is the job script name if exists |
| 9 |
|
| 10 |
exit |
| 11 |
|
| 12 |
# Redirect stdout and stderr in a file |
| 13 |
exec &> /tmp/oar_prologue.log |
| 14 |
|
| 15 |
#Exemple for mono processor cluster |
| 16 |
DIFFUSE_SCRIPT=~oar/oar_diffuse_script |
| 17 |
PROLOGUE_LOCAL=~oar/oar_prologue_local |
| 18 |
CMD="$PROLOGUE_LOCAL $1 $2 $4" |
| 19 |
|
| 20 |
$DIFFUSE_SCRIPT $3 $CMD |
| 21 |
|