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

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.

Steve


On Thu, 11 Jan 2007, Neha Sharma wrote:

The code is:

print JDL_FILE "#Forward-JobID = 'cluster: $(cluster)' 'process: $(process)'\n";

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.

- Neha
On Jan 11, 2007, at 1:41 PM, Alain Roy wrote:

At 01:16 PM 1/11/2007 -0600, you wrote:
Hi

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:

  cluster: $cluster

-alain



_______________________________________________
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

- Neha




--
------------------------------------------------------------------
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.