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

Re: [Condor-users] calling condor_submit from script




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