I'd like to submit python scripts as jobs to the devcloud. To test out the same, I created a python file called test.py containing -
Then I created a file called myjob.sh which contains the lines
I submitted myjob.sh using the command qsub -d . myjob.sh from the terminal in jupyterlab. The output and error files get generated after a few seconds, but both of them are empty. I've double checked the file paths as well as added -d . to the sub command for execution in the same directory. If I run python test.py directly in the terminal, I get the desired "hello world" output.
Why am I getting an empty output and error file using sub? How can I resolve this?
I assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.