Reputation: 21319
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
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