KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ Environment variables in par.txt

  • Environment variables in par.txt

    Posted by eohara_kdb on September 18, 2024 at 11:45 am

    Hi all,

    Just checking here if there is any way to use environment variables in par.txt?

    I have a segmented database that is available to multiple servers, and one of the segments is mounted on a different path in each server

    e.g. in server A it’s mounted under /path/to/segment_2/…

    in server B it’s under /path/to/segment/…

    I’ve tried setting the start of the path to a variable and using e.g. ${MOUNT_PREFIX} and getenv[`MOUNT_PREFIX] in par.txt, but there doesn’t seem to be a way to get kdb to resolve these when reading the file.

    If this isn’t possible, will most likely use sym links instead.

    Thanks,

    Eoghan

    eohara_kdb replied 2 weeks, 5 days ago 2 Members · 2 Replies
  • 2 Replies

Log in to reply.