From R:
param<-Sys.getenv(“SLURM_ARRAY_TASK_ID”)
From Matlab:
param=getenv(‘SLURM_ARRAY_TASK_ID’);
From python:
import os param = os.getenv(‘SLURM_ARRAY_TASK_ID’)