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

Re: [Condor-users] custom classAd condor



On 07/27/2011 08:21 PM, shivam tiwari wrote:
Hi,

I am trying to add custom classAd dynamically
my condor_config file has

  STARTD_CRON_NAME = CRON
STARTD_CRON_JOBLIST = SHIVAM_IP
STARTD_CRON_SHIVAM_IP_EXECUTABLE = /home/bigbang/temp.sh
STARTD_CRON_SHIVAM_IP_PERIOD = 2s


temp.sh contains

#!/bin/sh
get_ip()
{

  /sbin/ifconfig eth1 $1 | awk -F"inet addr:" {'print $2'} | awk -F" "
{'print $1'} | grep -oE "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+"

}

ip=`get_ip`
echo "ShivamIp = $ip"
When I checked my Log File it says

Can't insert 'ShivamIp = 127.0.0.1' into 'SHIVAM_IP' ClassAd

please help me

echo 'ShivamIp = "$ip"'

The value must be a valid ClassAd value, in this case a string, which must be quoted.

Best,


matt