- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Is your issue resolved? Do you have any update?
Regards,
Janani Chandran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Is your issue resolved? Do you have any update?
Regards,
Janani Chandran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page