Lionel Ostric wrote:
> All,
> 
>       Running cfagent 2.1.20 in the post section of kickstart, I have
> a problem with the following line :
> 
> host_arch       = ( ExecResult("/tmp/mnt/misc/platform") )
> 
>       which  leaves the host_arch variable empty (I tried it also
> without the double quotes).
> 
>       The script does not return anything while if it is run as itself
> in the post section of kickstart it shows 'linux2.4-glibc2.3-x86' ...
> 
>       It was working with version 2.1.15.
> 
> Here's the log of cfagent
> 
> 
> RecordMacroId(host_arch)
> HandleFunctionObject(ExecResult("/tmp/mnt/misc/platform"))
> IsBuiltinFunction(ExecResult("/tmp/mnt/misc/platform"))
> IsBuiltinFunction: ExecResult("/tmp/mnt/misc/platform")
> HandleFunction: ExecResult("/tmp/mnt/misc/platform")
> FunctionStringToCode(ExecResult)
> ListArg[0]=(/tmp/mnt/misc/platform")
> ListArg[1]=(tmp/mnt/misc/platform")
> ListArg[2]=(mp/mnt/misc/platform")
> ListArg[3]=(p/mnt/misc/platform")
> ListArg[4]=(/mnt/misc/platform")
> ListArg[5]=(mnt/misc/platform")
> ListArg[6]=(nt/misc/platform")
> ListArg[7]=(t/misc/platform")
> ListArg[8]=(/misc/platform")
> ListArg[9]=(misc/platform")
> ListArg[10]=(isc/platform")
> ListArg[11]=(sc/platform")
> ListArg[12]=(c/platform")
> ListArg[13]=(/platform")
> ListArg[14]=(platform")
> ListArg[15]=(latform")
> ListArg[16]=(atform")
> ListArg[17]=(tform")
> ListArg[18]=(form")
> ListArg[19]=(orm")
> ListArg[20]=(rm")
> ListArg[21]=(m")
> Appending [/tmp/mnt/misc/platform]
> ExpandVarstring(/tmp/mnt/misc/platform)
> ARG[0] /tmp/mnt/misc/platform
> cfpopen(/tmp/mnt/misc/platform)
> GetExecOutput got: []
> cfpclose(pp)
> AddMacroValue(main.host_arch=)
> Added Macro at hash address 3532 to object main with value host_arch=
> 
> ------------------------------------------------------------------------
> ------------
> Lionel Ostric - Senior Systems Administrator - Engineering IT
> ARM France - Les Cardoulines B2 - Route des Dolines
> Sophia Antipolis - 06560 Valbonne - France
> +33 (0)4 97 23 51 22 / +33 (0)6 03 83 02 63
> 
> 
> -- IMPORTANT NOTICE: The contents of this email and any attachments are 
> confidential and may also be privileged. If you are not the intended 
> recipient, please notify the sender immediately and do not disclose the 
> contents to any other person, use it for any purpose, or store or copy the 
> information in any medium.  Thank you.
> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> http://cfengine.org/mailman/listinfo/help-cfengine


Hi Lionel,

The debug output is a little confusing (wrong) but this seems to be 
working okay underneath. Your call /tmp/mnt/misc/platform does not 
seem to return anything however. Try with abother command like 
"/bin/echo the long LAW of the ARM" or "/bin/uname"

M


-- 
Mark Burgess

Professor of Network and System Administration
Oslo University College

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  [EMAIL PROTECTED]
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
http://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to