VOV: Retrieve jobs data

Goetz Leonhardt
Goetz Leonhardt New Altair Community Member
edited February 2023 in Altair HPCWorks

You can retrieve job-related information such as command, environment, directory and resources with the job id, VOV_JOBID. The id is handed over through the list of arguments. See an example script below:

#!/bin/csh
#  -*- Tcl -*- \
    exec vovsh -f $0 $*:q
 
set VOV_JOBID [lindex $argv 0]
 
# getting job nformation
vtk_transition_get $VOV_JOBID jobinfo
parray jobinfo
 
# specific information
puts "this job is running in [vtk_path_expand $jobinfo(dir)]"
puts "this job uses this environment: $jobinfo(env)"