How do I email from kdb?

585 views
Skip to first unread message

Varun Tomar

unread,
Feb 23, 2016, 3:21:18 AM2/23/16
to Kdb+ Personal Developers
I would like to email whenever the value of a variable is -1 . how do i go about emailing?
Could you please help. I would like to set the subject of the email to "Error: " .

Manish Patel

unread,
Feb 23, 2016, 3:26:04 AM2/23/16
to personal...@googlegroups.com
why not just use command line mail from kdb? e.g.

system"mail -s \"Error: foobar\ mys...@me.com"

(if you're unix)

On Tue, Feb 23, 2016 at 8:04 AM, Varun Tomar <varun...@gmail.com> wrote:
I would like to email whenever the value of a variable is -1 . how do i go about emailing?
Could you please help. I would like to set the subject of the email to "Error: " .

--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbpl...@googlegroups.com.
To post to this group, send email to personal...@googlegroups.com.
Visit this group at https://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.

Manish Patel

unread,
Feb 23, 2016, 3:26:29 AM2/23/16
to personal...@googlegroups.com
^oops missing "

system"mail -s \"Error: foobar\" mys...@me.com"

Jonny Press

unread,
Feb 23, 2016, 3:54:53 AM2/23/16
to personal...@googlegroups.com
If you can’t use that, or you want something slightly less straightforward :-) then TorQ has an email lib (it’s a wrapper around libcurl).  It has builds for l32, l64, m32, m64, w32.  It would be fairly straight forward to strip it out of TorQ if required.  You’ll need the relevant libs: 


This file will show some of the variables and how to initialise it etc.:


It’s documented here in section 6.5:

Varun Tomar

unread,
Feb 23, 2016, 4:03:16 AM2/23/16
to Kdb+ Personal Developers
Thank you Manish and Jonny! 
Reply all
Reply to author
Forward
0 new messages