I am trying to build a small script which would initiate workers on PBS cluster through interactive job. For that I need a way to execute
cat $PBS_NODEFILE in interactive session to get associated resources to me. Essentially what I would like to accomplish is something like this:
output, input, p = readandwrite(`qsub -I`) readline(output) # waiting for job to start write(input,"cat \$PBS_NODEFILE \n") # Reading given resources # Starting julia workers with my custom needs # Doing some calculation # Killing interactive session and so the job kill(p,9)
But I get an error after executing
qsub: standard input and output must be a terminal for interactive job submission
How could I get around that?
I am looking for similar behavior what ptyprocess offers.