[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FileExists not finding a File that Exists
From: |
Chip Seraphine |
Subject: |
FileExists not finding a File that Exists |
Date: |
Mon, 02 Jun 2003 12:15:25 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.2.1) Gecko/20030121 |
I am not able to get FileExists to correctly fire upon seeing a file
(2.06, Solaris/Intel). The file in question exists, is readable, etc.
I have tried various paths and permissions, taking the class in and out
of the AddInstallable list, made sure there are no evil spaces slipping
into the arguments of FileExists(), etc. Any ideas?
control:
actionsequence = ( shellcommands )
AddInstallable = ( localcf_exists )
localcf_exists = ( FileExists(/tmp/cf.localhost) )
shellcommands:
localcf_exists::
"/usr/bin/logger I see localcf"
Relevant hunks of -d2:
New Parser Object::BEGIN PARSING ./cfagent-test.conf
Appending [shellcommands]
AddInstallable(localcf_exists)
Appending [localcf_exists]
RecordMacroId(localcf_exists)
IsBuiltinFunction: FileExists(/tmp/cf.localhost)
HandleFunction: FileExists(/tmp/cf.localhost)
AddMacroValue(main.localcf_exists=any)
Added Macro at hash address 847 to object main with value localcf_exists=any
SplitVarstring(/usr/bin/logger I see localcf,:=58)
Appending [/usr/bin/logger I see localcf]
AddInstallable()
AddInstallable()
Delete Parser Object::(END OF PARSING)
Accepted domain name: undefined.domain
Defined Classes = ( any cfengine_2_0_6 opt_debug Monday Hr12 Min12
Min10_15 Q1 Hr12_Q1 Day2 June Yr2003 solarisx86 cuffs 32_bit sunos_5_8
i86pc sunos_i86pc sunos_i86pc_5_8 i386 sunos_i86pc_5_8_Generic_108529_20
compiled_on_solaris2_8 net_iface_lo0 net_iface_elxl0 10_10_1_165
cuffs_trdlnk_com 10_10_1 ipv4_10_10_1_165 ipv4_10_10_1 ipv4_10_10 ipv4_10 )
Negated Classes = ( )
Installable classes = ( localcf_exists )
[...snip...]
*********************************************************************
Main Tree Sched: shellcommands pass 1 @ Mon Jun 2 12:12:18 2003
*********************************************************************
(BuildClassEnvironment)
---
ENVIRONMENT:
CFALLCLASSES=any:cfengine_2_0_6:opt_debug:Monday:Hr12:Min12:Min10_15:Q1:Hr12_Q1:Day2:June:Yr2003:solarisx86:cuffs:32_bit:sunos_5_8:i86pc:sunos_i86pc:sunos_i86pc_5_8:i386:sunos_i86pc_5_8_Generic_108529_20:compiled_on_solaris2_8:net_iface_lo0:net_iface_elxl0:10_10_1_165:cuffs_trdlnk_com:10_10_1:ipv4_10_10_1_165:ipv4_10_10_1:ipv4_10_10:ipv4_10:
---
Actionsequence item shellcommands
localcf_exists is excluded!
Job start time set to Mon Jun 2 12:12:18 2003
*********************************************************************
Main Tree Sched: shellcommands pass 2 @ Mon Jun 2 12:12:18 2003
*********************************************************************
(BuildClassEnvironment)
---
ENVIRONMENT:
CFALLCLASSES=any:cfengine_2_0_6:opt_debug:Monday:Hr12:Min12:Min10_15:Q1:Hr12_Q1:Day2:June:Yr2003:solarisx86:cuffs:32_bit:sunos_5_8:i86pc:sunos_i86pc:sunos_i86pc_5_8:i386:sunos_i86pc_5_8_Generic_108529_20:compiled_on_solaris2_8:net_iface_lo0:net_iface_elxl0:10_10_1_165:cuffs_trdlnk_com:10_10_1:ipv4_10_10_1_165:ipv4_10_10_1:ipv4_10_10:ipv4_10:
---
Actionsequence item shellcommands
localcf_exists is excluded!
- FileExists not finding a File that Exists,
Chip Seraphine <=