SLURM doesn't recognize the commands in prolog script -
i run commands such as: ifconfig, sminfo in slurm prolog script, these commands not executed , return error: command not found , empty output if check output text file. if try commands such as: ls, hostname; working well. tried execute script manually it's working , commands: sminfo, ifconfig working well.
what problem ??
my script:
#!/bin/bash echo "==pre job==:" work_dir=`scontrol strong textshow job $slurm_jobid | grep ' workdir' | awk '{print $1}' | awk -f'=' '{print $2}'` sminfo_out=`sminfo` cd $work_dir echo $sminfo_out > /tmp/sminfo_out3 python check_sm.py --sm_input "$sminfo_out"
the second sentence of slurm documentation on prolog , epilog scripts reads:
note security reasons, these programs not have search path set. either specify qualified path names in program or set "path" environment variable
so either set path
explicitly @ beginning of script (run echo $path
find out contains) or use full path commands running (use which command
find out full path command).
Comments
Post a Comment