Fwd: kdb q on cygwin

---------- Forwarded message ----------
From: ramesh kumar <ramesh.kumar.14725@gmail.com>
Date: Thu, Mar 1, 2018 at 10:44 PM
Subject: kdb q on cygwin
To: personal-kdbplus@googlegroups.com

Hi team, 

I am trying to run kdb from cygwin on windows platform. It runs fine when I run it on vanilla cmd prompt. However, when I am running it from cygwin/“bash-on-ubuntu” I am getting a weird q prompt. 

There is no “q)” appearing in the prompt and I would have to press enter twice to run each query. Any suggestions?

Thanks.

Hi Ramesh,

R. Pritchard’s winpty library could possibly solve this issue. Among other things, it provides properly structured escaping when your session is created, so you won’t have to hit enter multiple times to run commands, and you’ll be able to see the q) prompt.

https://github.com/rprichard/winpty/releases

Depending on whether you’re using 32- or 64-bit Cygwin, download the corresponding winpty-cygwin-version. You can then extract the downloaded .tar.gz file into the cygwin installation dir (e.g. C:/Cygwin64)

Once you’ve done this, you can run q with winpty q, e.g.:

user@computer ~

$ winpty q

KDB+ 3.5 2017.03.28 Copyright (C) 1993-2017 Kx Systems

w32/ 4()core 4095MB user computer 192.168.1.118 NONEXPIRE


q)1+1

2

q)

Hope this helps,

James

Thanks for your reply James. That worked on cygwin. Any idea how I can make it work with “bash on Ubuntu on Windows”?

Ubuntu on Windows? Do you mean running Ubuntu in a VM on Windows? If that’s the case, you should be able to use the Linux version of kdb+ directly.