_______________________________________________Add a log statement to your submit file, and then use condor_wait with the log file to wait for the job to complete.
Â
for instance if your submit file is
Â
executable = /bin/sleep
arguments = 60
log = /users/bob/joblog
queue 1
Â
Then you can use condor_wait after you submit to wait for the job to exit. This works best if you have a new log file for each submit.
Â
condor_submit job.sub && condor_wait /users/bob/joblog
Â
you can use the -echo argument with condor_wait to watch the progress of the job as matches a machine and then runs there.
Â
-tj
Â
Â
Â
From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> On Behalf Of rmorgan466@xxxxxxxxx
Sent: Monday, March 14, 2022 6:23 AM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: [HTCondor-users] wait for stdoutÂ
I want to submit a small job and wait for it to complete and show the stdout (and stderr) to the console. How can I do that?Â
Â
Â
--
--- Get your facts first, then you can distort them as you please.--
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/