cancel
Showing results for 
Search instead for 
Did you mean: 

Using \l Within Tickerplant Process

tradergonedev
New Contributor
Hey Qbies, 
I have a file, engineFunctions.q, containing functions and a table that I want to load within a Tickerplant subprocess (in my cx.q file).

I'm attempting to load the file as such:
if[x~"ProcessName";
 
\l path/engineFunctions.q
 
]  

^^ gives me `\ error.

I've done some research to try and figure this out and saw that maybe I should be using "system" instead of \l.
So I tried:

if[x~"ProcessName";
 system
"l", path/engineFunctions.q
 
]

^^ gives me  `/ error telling me that my path is incorrect.

Any help would be greatly appreciated. Feels like I'm probably over-complicating this. 
2 REPLIES 2

cbiggs
New Contributor
Hi John

Backslash to use command lines requires no preceding whitespace, or any other characters.

Your second attempt appears to fail because you're not calling system with a string 

if[x~"ProcessName";
 system
"l path/engineFunctions.q";
 
]


Thanks!