Hi,
the alternative is to use "condor_wait <logfile>" and don't worry about parsing the log file yourself.
To do exactly what you want you can wrap condor_submit and condor_wait in a small script (condor_submit_sync) that first parses the submit file (given as an argument) for the "log = " line, then execs condor_submit <argument> then execs condor_wait <logfile>.
Cheers,
Andrew
Hi, yes there is. If you like perl you can use the Condor.pm library to submit and wait for the job to finish. (See http://www.cs.wisc.edu/condor/manual/v6.8.0/4_4Application_Program.html#SECTION00545000000000000000) If not you can simply write your own library to submit and monitor your job. All you have to do is call condor_submit with an system exec call and parse the log file from time to time to see if the job has finished. All the regexs you need for parsing the log file are in Condor.pm in the subroutine "monitor". Cheers, Matthias Matthias Röhm, University Ulm, DaimlerChrysler AG, Research Center Ulm, Department for Inline Inspection and Data Mining Solutions, RMI/DM P.O. Box 23 60, 89013 Ulm, Germany Phone: +49 (0)731 505 4864 Fax: +49 (0)711 3052183085 Email: mailto:Uni-Ulm.M.Roehm@xxxxxxxxxxxxxxxxxxx
> > On multiple occasions I have wished for an option to call > condor_submit synchronously in a script. Here by "synchronously", I > simply mean that condor_submit would not exit until all the Condor > jobs it spawns are finished running. I know I could probably use > DAGman to achieve a similar effect. But, I've found DAGman to be > somewhat difficult to use for a few reasons that I won't bother > getting into here. Is there such a synchronous way to call condor_submit? > > Thanks. _______________________________________________ > Condor-users mailing list > To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a > subject: Unsubscribe > You can also unsubscribe by visiting > https://lists.cs.wisc.edu/mailman/listinfo/condor-users > > The archives can be found at either > https://lists.cs.wisc.edu/archive/condor-users/ > http://www.opencondor.org/spaces/viewmailarchive.action?key=CONDOR_______________________________________________ Condor-users mailing list subject: Unsubscribe You can also unsubscribe by visiting
The archives can be found at either
Dr Andrew Walker
Department of Earth Sciences University of Cambridge Downing Street Cambridge CB2 3EQ UK
phone +44 (0)1223 333432
|