I understand that the nohup option isn’t necessary any longer, nor is the & at the end.
I’ve read the manual, but still don’t understand what it means to put the commands into a script and run qsub. Suppose I have 2 programs:
p1.sas
p2.sas
and I want p2.sas to run after p1.sas has finished.
What do I do?
I tried the following:
Create a text file called batch.sh
Edit that file to include only the following lines:
#!/bin/bash
#$ -cwd
sas p1.sas
sas p2.sas
I then submitted this with “qsub batch.sh”
p1.sas and p2.sas are programs that I’ve run before individually, and I know they work. But this batch file doesn’t seem to be working - the expected datasets haven’t been created. When I type in qstat to check the progress, the program seems to be still running, even though the underlying p1 and p2 sas programs would have been finished in a fraction of the time that it’s taken so far.