Ad Widget

Collapse

macro embeded in string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alex_SYB
    Senior Member
    • Feb 2012
    • 133

    #1

    macro embeded in string

    I would like to do something like

    vfs.file.cksum["/apps/abc/qfix/etc/configfile_{$QUICKFIX_ENV}.cfg"]

    I have $QUICKFIX_ENV defined for the host. to prod
    it worked when I had it manualled defined
    vfs.file.cksum["/apps/abc/qfix/etc/configfile_prod.cfg"]

    if not can I concatinate strings
    vfs.file.cksum["/apps/abc/qfix/etc/configfile_"+{$QUICKFIX_ENV}+".cfg"]
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    Your first approach should work.

    Double-check that the User macro is really set correctly (e.g. is set to 'prod' without quotes).
    Do you already have inspect the log files for errors concerning this item?

    Comment

    Working...