Hitting enter results in KDB background process stopping

658 views Asked by At

I am running a Kx Q process on my Linux server

I notice that when I run this command that after I hit return/enter on my shell that the process stops

./kdb/q/l32/q -p 1234 &

However, if I run this in the foreground...

./kdb/q/l32/q -p 1234

It opens up a q) prompt that hitting return/enter does not cause it to exit

I am wondering if hitting enter causing the process to stop is something related to Kx, or if its Linux related?

Any advice is appreciated

1

There are 1 answers

0
Anton Dovzhenko On BEST ANSWER

You should use nohup to execute the command in background. For example

nohup ./kdb/q/l32/q -p 1234 &