We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f644a75 commit fe98a3cCopy full SHA for fe98a3c
scripts/launch_all_requests_scripts.sh
@@ -29,13 +29,16 @@ for script in $SCRIPTS; do
29
if [[ -f "$script" ]]; then
30
echo "Launching SLURM job for $script on node wn54"
31
base=$(basename "$script" .py)
32
+ script_dir=$(dirname "$script")
33
+ script_file=$(basename "$script")
34
out_file="$LOG_DIR/${base}-%j-%s.out"
35
err_file="$LOG_DIR/${base}-%j-%s.err"
36
sbatch --nodelist=wn054 -p meteo_long \
- --job-name="$base" \
- --output="$out_file" \
37
- --error="$err_file" \
38
- --wrap="python $script"
+ --job-name="$base" \
+ --output="$out_file" \
39
+ --error="$err_file" \
40
+ --chdir="$script_dir" \
41
+ --wrap="python $script_file"
42
else
43
echo "Script not found: $script"
44
fi
0 commit comments