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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -