- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have followed the basic job submission tutorial and created a file named myjob.txt in the server. Then added these two lines in myjob.txt file using a text editor.
cd $PBS_O_WORKDIR
python final.py
Then I executed the command "qsub myjob.txt" and a job id returned. After that, I executed the command "qstat" and it returned with the job id of the jupyterhub. Also two new blank files also created in the directory - myjob.txt.o4489 and myjob.txt.e4489. What am I doing wrong here?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Toqi,
Thanks for reaching out to us.
Please follow the steps mentioned below to submit the job
1. Create a file named as myjob
vi myjob
2. Open the file and add the following commands
#If you want to run the job for 24hrs add the command mentioned below (include #)
#PBS -l walltime=24:00:00
#PBS -l nodes=1
cd $PBS_O_WORKDIR
#Activate your environment using the command below
source activate <ENV_NAME>
#Redirect to the working directory
cd <DIRECTORY PATH>
python <YOUR PYTHON NAME>.py
Please find the attached sample file. It would be great if you can share the observation once you are done.
Since you are getting both the object file and error file as blank, Please try to execute the code directly in a compute node (not as a job) and share the observation.
1. Get a compute node
qsub -I
2. Redirect to the working directory
cd <DIRECTORY PATH>
3. Execute the code as
python final.py
- 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
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page