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

Re: [Condor-users] Printing $Cluster and $Process in jobmanager script



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

The archives can be found at either

- Neha