I know I can q -s 8 to start 8 slaves, then \l myscripts.q
But I can’t do things like
q -s 8 myscripts.q. That only goes into the q) console, nothing else.
can’t do q myscripts.q -s 8 either since that arguments go into myscripts.q, not q.
How do I make this work? Without this feature it’s very hard to automate the scripts I have.
Are you sure the second option isn’t doing what you require?
testSlaves.q
/-Output the number of slaves
"The number of slaves set on command line = ",string system “s”
/-Output the command line arguments shows that -s is actually a command line setting not a script argument
“Command Line Arguments are …”
.Q.opt[.z.x]
/-end of script
C:\q>q testSlaves.q -s 8 -scriptArg1 123 -scriptArg2 456
“The number of slaves set on command line = 8”
“Command Line Arguments are …”
scriptArg1
scriptArg2!(,“123”;,“456”)
q)
Thanks Rory