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

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




On Jan 11, 2007, at 3:08 PM, Alain Roy wrote:

At 02:41 PM 1/11/2007 -0600, Neha Sharma wrote:
The code is:

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

$( is a special Perl variable. Gotta love Perl.

The easiest change is:

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

(All on one line.)

As you suggested, I put

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

Output I got:

#Forward-JobID = 'cluster: $(cluster)' 'process: $(process)'

perl just treats it as regular string...


- Neha


That is, I put backslashes before the dollar signs.

I suspect that you don't really want the single quotes printed, but 
I'll leave that up to you.

-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