system
1
(imported topic written by SystemAdmin)
When taking action on this fixlet, it fails on the if {exists… line
Is there a syntax issue ?
parameter “INSTALLDIR” = “/usr/tivoli/tsm/client/ba/bin/”
if { exists file “{parameter “INSTALLDIR”}dsm.sys”}
wait sh -c “cp {parameter “INSTALLDIR”}dsm.sys {parameter “INSTALLDIR”}dsm.sys.save”
endif
(imported comment written by Bill.Ehardt)
Don’t you need to escape the nested { bracket?
Doh, its the right one in this situation, }}
http://support.bigfix.com/cgi-bin/kbdirect.pl?id=1230
system
3
(imported comment written by SystemAdmin)
What about this one for {computer Name} nested inside the if
if { exist file “parameter “INSTALLDIR”{computer name}.dsm.opt”}
(imported comment written by Bill.Ehardt)
If I’m reading that right I think if you want to use rel substitution you need to escape the closing brace, so does this work?
if { exist file “parameter “INSTALLDIR”{computer name}}.dsm.opt”}
system
5
(imported comment written by MattBoyd)
Anything between braces is evaluated as relevance, so you shouldn’t nest additional braces. I think you need to do something like this:
if { (exist file (parameter “INSTALLDIR” & computer name & “.dsm.opt”))}
system
6
(imported comment written by SystemAdmin)
That Worked!! Thanks