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

qsub job submission returns empty output

abhishek31
Beginner
3,582 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
3,546 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

 

0 Kudos
abhishek31
Beginner
3,528 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

0 Kudos
JananiC_Intel
Moderator
3,501 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

 

0 Kudos
JananiC_Intel
Moderator
3,457 Views

Hi,


Is your issue resolved? Do you have any update?


Regards,

Janani Chandran


0 Kudos
abhishek31
Beginner
3,453 Views

Hi,

 

I tried it again. Still doesn't work.

 

0 Kudos
JananiC_Intel
Moderator
3,317 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

 

0 Kudos
JananiC_Intel
Moderator
3,146 Views

Hi,


Is your issue resolved? Do you have any update?


Regards,

Janani Chandran


0 Kudos
JananiC_Intel
Moderator
3,048 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


0 Kudos
Reply