Tzach Solomon
Tzach Solomon

Reputation: 798

Nothing is displayed when trying to connect to Sybase SQL Anywhere under CYGWIN

I'm trying to work with dbisql (Sybase SqlAnywhere client) under CYGWIN but the database prompt (shell) is not displayed on screen and then the client exists.

This is how I'm trying to connect

sqlanywhere@win2012r2:  dbisql -c "UID=dba;PWD=sql;DBN=demo;host=10.100.49.124" -nogui

Does anyone know how to solve this one?

Thanks

Upvotes: 1

Views: 211

Answers (2)

RobV
RobV

Reputation: 2378

A simpler solution is to explicitly use 'dbisql.com' rather than 'dbisql', which will invoke 'dbisql.exe' which doesn't work well under Cygwin.

Upvotes: 2

Tzach Solomon
Tzach Solomon

Reputation: 798

Adding cmd /c before the dbisql starting the client did the trick

sqlanywhere@win2012r2:  dbisql -c "UID=dba;PWD=sql;DBN=demo;host=10.100.49.124" -nogui select from temptbl

sqlanywhere@win2012r2: cmd /c dbisql -c "UID=dba;PWD=sql;DBN=demo;host=10.100.49.124" -nogui

(DBA)> quit
sqlanywhere@win2012r2:

Upvotes: 1

Related Questions