on Windows you can use the for to parse the output of a
command
--- my_submit.bat----
@for /f "tokens=6 delims=. " %%I in ('condor_submit.exe %1')
do @echo %%I
---end of my_submit.bat---
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..
On Wed, Apr 4, 2012 at 7:39 PM, Thomas
Luff <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
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
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/
|