How can I send a batch job to PBS using a function in Shell? -
i can submit job pbs using both approaches of non-interactive batch jobs and/or interactive batch jobs. however, need use pbs commands in function. in other world need structure this: #!/bin/sh pbs_setup () { #pbs -l $1 #pbs -n $2 #pbs -q normal #pbs -a $user #pbs -m ae #pbs -m $user"@gmail.com" #pbs -q normal #pbs -l nodes=1:ppn=8 #pbs } pbs_setup "walltime=6:00:00" "step3"; echo " " echo "job started echo " " echo "job ended when submitting job not working. in fact final goal separating commands of job main body of code. when hpc changed edit shell file included function instead of editing shells. appreciate if...