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

Re: [Condor-users] cluster number in shell script (sh)

yes, set

in your condor submit file
and the log file will be created accordingly.

Steve timm

On Mon, 29 Nov 2010, Alexandru Chiscan wrote:

   Hello all,

I am using shell scripts to generate condor submit files and to submit
The scripts generate clusters with many jobs (hundreds) and I want at
the end to have in one log file the output and the error log of all the
jobs in the cluster. For the moment I am using the shell name and pid
for the log name ( $0.$$ ) but the pid will be reused and I will like to
use the cluster number for it - which should be unique (or not?).

Is there any way to get the cluster number in the script without having
to parse the output of the condor_submit command?

cluster=`condor_submit job.submit | grep "submitted to cluster" | awk
'{print $6} `
echo "cluster $cluster"


Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting

The archives can be found at:

Steven C. Timm, Ph.D  (630) 840-8525
timm@xxxxxxxx  http://home.fnal.gov/~timm/
Fermilab Computing Division, Scientific Computing Facilities,
Grid Facilities Department, FermiGrid Services Group, Assistant Group Leader.