Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1041 Discussions

qsub job submission returns empty output

abhishek31
Beginner
2,111 Views

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 -

print("hello world")

Then I created a file called myjob.sh which contains the lines

#!/bin/bash

python test.py

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?

Labels (1)
0 Kudos
8 Replies
JananiC_Intel
Moderator
2,075 Views

Hi

 

Thanks for posting in Intel forums.

 

Are you looking into the correct output files?Can you check again?

 

Because we tried the same and we got the output file with "hello world" as attached in the below screenshot .Check that and if the issue persists then let us know.

 

Regards,

Janani Chandran

 

abhishek31
Beginner
2,057 Views

Hi Janani,

I tried it again, but I still get an empty output and error file.

Can you share your python script and job file, so that I can test at my end against the same?

Thanks

JananiC_Intel
Moderator
2,030 Views

Hi,

 

Thanks for the update.

 

In your first post you have shared a reproducer so I tried the same with the same command "qsub -d . myjob.sh". Please find the attached files(txt files) for reference and let us know the updates.

 

 

Regards,

Janani Chandran

 

JananiC_Intel
Moderator
1,986 Views

Hi,


Is your issue resolved? Do you have any update?


Regards,

Janani Chandran


abhishek31
Beginner
1,982 Views

Hi,

 

I tried it again. Still doesn't work.

 

JananiC_Intel
Moderator
1,846 Views

Hi Abhishek,

 

Sorry I tried this again and couldn't find any issue. Please find the attached screenshot of the result.

 

Could you try the job submission with other samples and let us know?

 

Regards,

Janani Chandran

 

JananiC_Intel
Moderator
1,675 Views

Hi,


Is your issue resolved? Do you have any update?


Regards,

Janani Chandran


JananiC_Intel
Moderator
1,577 Views

Hi,


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.


Regards,

Janani Chandran


Reply