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

Re: [Condor-users] condor_submit to be less verbose



On 4/4/2012 8:27 PM, Tiago Macarios wrote:
I am stuck with windows for the moment, but thanks for the help! I am
surprised there is no built-in way to get it..


You could always tag the jobs you are submitting with something meaningful to your application, then use condor_q -format to get out whatever you want including just cluster id ids.

Example:

your program wants to submit a bunch of jobs related to vector "foo", then it wants to see all the job ids associated with vector foo.

your program could do
  condor_submit -a MyVectorName=\"foo\" submit_file.sub
(maybe it does a bunch more submits, doesn't matter)

then to get the cluster numbers
  condor_q -con MyVectorName==\"foo\" -format "%d\n" ClusterId

Of course, I don't know if it a problem if your jobs complete and leave the queue before you can run condor_q ...

regards,
Todd

On Wed, Apr 4, 2012 at 7:39 PM, Thomas Luff <Thomas.Luff@xxxxxxx
<mailto:Thomas.Luff@xxxxxxx>> wrote:

    I deal with it by using a capture group in a perl regex. But if you
    don't want to deal with it in your code I guess you could just pipe
    the output through awk? (assuming unix derivative)

    $ condor_submit test.submit | awk '{ print $6}
    11.

    I would get it to remove the '.' too but it's late and I need some sleep

    Tom



    On 5 Apr 2012, at 00:10, Tiago Macarios wrote:

     > Hi all,
     >
     > Is there any way to have condor_submit to print only the cluster
    number and not the whole "X job(s) submitted to cluster Y."?
     > I know I could probably write a script that does that, but it
    looks like something that should already be there and would be a
    more elegant solution. I tried looking in the condor_submit help,
    but could not find anything about it.
     > Our software actually submits "vectors" of jobs and sometimes I
    need to remove one of these vectors. In PBS I just need to pipe the
    "qsub" to a file and then iterate trough it.
     >
     > Cheers,
     > T. Mac.
     > _______________________________________________
     > Condor-users mailing list
     > To unsubscribe, send a message to
    condor-users-request@xxxxxxxxxxx
    <mailto: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:
     > https://lists.cs.wisc.edu/archive/condor-users/


    -- IMPORTANT NOTICE: The contents of this email and any attachments
    are confidential and may also be privileged. If you are not the
    intended recipient, please notify the sender immediately and do not
    disclose the contents to any other person, use it for any purpose,
    or store or copy the information in any medium.  Thank you.

    _______________________________________________
    Condor-users mailing list
    To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx
    <mailto: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:
    https://lists.cs.wisc.edu/archive/condor-users/




_______________________________________________
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:
https://lists.cs.wisc.edu/archive/condor-users/


--
Todd Tannenbaum <tannenba@xxxxxxxxxxx> University of Wisconsin-Madison
Center for High Throughput Computing   Department of Computer Sciences
Condor Project Technical Lead          1210 W. Dayton St. Rm #4257
Phone: (608) 263-7132                  Madison, WI 53706-1685