I am writing a q script that loads db in a specific path and does some processing on it. The db location is currently hardcoded in the script, but I want to pass the db path as an argument and get it to load from the path in a variable.
Currently it looks like this:
q) \l /path/to/dbDir
I realized that .Ql should allow us to do this with a variable, so I tried using the following in a script,
dbPath:`$.z.x 0
.Q.l hsym dbPath
When launched with the / path / to / dbDir argument, the script always fails with some unreadable stuff and:
':/path/to/dbDir: No such file or directory
Can anyone help?
Sahas source
share