KX Community

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

Home Forums KX Academy Arguments of .Q.hdpf Re: Arguments of .Q.hdpf

  • iodwyer

    Member
    March 9, 2022 at 12:00 am

    The RDB is started via the command line like so:

    q tick/r.q localhost:5000 localhost:5002 -p 5001

    The first argument to .Q.hdpf refers to the location of the HDB process. The variable .u.x refers to the tickerplant and hdb ports (type string) generated from .z.x (command line args) as seen here https://github.com/KxSystems/kdb-tick/blob/master/tick/r.q#L9

     

    Therefore, joined together, “:”,.u.x 1 is “:localhost:5002″. This is then casted to a symbol to create `:localhost:5002

    q)”:”,.u.x 1

    “:localhost:5002″

    q)`$”:”,.u.x 1

    `:localhost:5002