qsub passing input to bash script

PHOTO EMBED

Fri Mar 12 2021 21:07:11 GMT+0000 (UTC)

Saved by @chenyangsu #bash

#!/bin/bash
#PBS -l nodes=1:ppn=16,walltime=0:00:59
#PBS -l mem=62000mb
#PBS -m abe

bar=${foo}
echo "${bar}"


qsub -v foo='qux' myRunScript.sh

content_copyCOPY

https://stackoverflow.com/a/17068891