Debian Codegraph @

sources/core/scripts/oar_epilogue

raw
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_epilogue.log
14
15 #Exemple for mono processor cluster
16 DIFFUSE_SCRIPT=~oar/oar_diffuse_script
17 EPILOGUE_LOCAL=~oar/oar_epilogue_local
18 CMD="$EPILOGUE_LOCAL $1 $2 $4"
19
20 $DIFFUSE_SCRIPT $3 $CMD
21