[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] wait for stdout



Thanks for that.
I plan to run the command periodically -- say every 5 mins. Is there a deterministicÂway to determine the log file output overwriting it? was thinking something like this

while [[ true ]]; do
 condor_submit job.sub && condor_wait /users/bob/joblog
 sleep 300
done
ÂÂ


On Mon, Mar 14, 2022 at 10:23 AM John M Knoeller <johnkn@xxxxxxxxxxx> wrote:

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/


--
--- Get your facts first, then you can distort them as you please.--