1

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

kevinarpe
  • 20,319
  • 26
  • 127
  • 154

1 Answers1

4

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.

Matoran
  • 114
  • 1
  • 6
geocar
  • 9,085
  • 1
  • 29
  • 37