[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] Printing $Cluster and $Process in jobmanager script
- Date: Thu, 11 Jan 2007 14:49:32 -0600 (CST)
- From: Steven Timm <timm@xxxxxxxx>
- Subject: Re: [Condor-users] Printing $Cluster and $Process in jobmanager script
I think what is happening is that perl is interpreting
$( as the gid of the process, a special character. Have to
work around that somehow.
On Thu, 11 Jan 2007, Neha Sharma wrote:
The code is:
print JDL_FILE "#Forward-JobID = 'cluster: $(cluster)' 'process:
and there is no error. Just the output I get in jdl file (that gets generated
) is not what I want. It is
#Forward-JobID = '5444 5444cluster)' '5444 5444process)'
which is the id of the user under which this job will run.
On Jan 11, 2007, at 1:41 PM, Alain Roy wrote:
At 01:16 PM 1/11/2007 -0600, you wrote:
I am trying to print the value of cluster and process id of a condor
job in the jobmanager script.
However looks like perl is interpreting the $ sign in an unexpected way.
How can I get perl to understand this ?
Give us your code and your error message for the best possible response.
In general, if Perl sees:
print "cluster: $cluster\n";
It will print the value of the cluster variable where you see $cluster.
You can turn off this behavior by using single quotes:
print 'cluster: $cluster\n';
Which will print:
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
You can also unsubscribe by visiting
The archives can be found at either
Steven C. Timm, Ph.D (630) 840-8525
Fermilab Computing Division, Scientific Computing Facilities,
Grid Facilities Department, FermiGrid Services Group, Assistant Group Leader.