kevinarpe
kevinarpe

Reputation: 21319

How do I disable the KDB+ debugger for non-interactive sessions?

Sometimes, when my q script has an error, the debugger prompt appears: q)). I need to type \ to exit the debugger.

This is OK during interactive sessions, but breaks my scheduled (non-interactive) runs from crontab.

Can I disable the debugger for non-interactive runs? My Google-fu fails me.

Ref: http://code.kx.com/wiki/Reference/BackSlash

Upvotes: 1

Views: 387

Answers (1)

geocar
geocar

Reputation: 9305

You should use trap to respond to errors.

For periodic tasks in cron I like to fire a HTTP/IPC request at a running q instance instead of spinning up a q core since cron doesn't serialise. Using IPC means trapping is controlled by \e.

I might also prefer using the timer, depending on how periodic we are talking.

Upvotes: 4

Related Questions