Please note that the following is simply a copy of the README file that is included with the sqsh for NT package.
Sqsh is made possible on NT, thanks to the CYGWIN project. CYGWIN is a UNIX compatibility toolkit that makes porting sqsh (nearly) as easy as a simple re-compilation.
In order to use sqsh, you *must* have CYGWIN installed. If you don't have it you can get it from:
In particular sqsh requires access to CYGWIN1.DLL. So, either make sure that CYGWIN1.DLL is in your PATH, or only run sqsh while using the cygwin environment (there is a cygwin.bat file that gets installed with cygwin that will drop you into a bash prompt that'll be nicely configured).
You really only need the most basic cygwin install to work with sqsh, but I highly recommend installing the whole thing as it gives you the tools that can really make life with sqsh worthwhile (sed, awk, grep, bash, etc.).
NOTE: I *cannot* help you with CYGWIN issues. I spent just enough time with it to compile sqsh and run it once on my laptop. I spend all of my time on either Linux or Sun, so most likely by the time you read this, I have probably already forgotten all that I new about cygwin. Your best bet for help is probably comp.databases.sybase or one of the cygwin mailing lists.
PLEASE PLEASE PLEASE: Read the CYGWIN documentation on how to work within the cygwin environment. In particular, pay close attention to path naming conventions, which are different from those of NT. Namely:
C: = /cygdrive/c D: = /cygdrive/d ...
This is particularly important when setting variables within sqsh or environment variables used by sqsh to configure it's behavior. Sqsh will all paths according to cygwin rules.
Before you begin the installation, make sure that you have the following:
Alas, unfortunately, you are installing the NT version of sqsh which is not *quite* as automated as I would like (in fact, it is not automated at all!!).
doc/global.sqshrc to
SQSH_HOME/global.sqshrc.
SQSHRC=SQSH_HOME/global.sqshrc:${HOME}/.sqshrc
Then you should be off and running.
Note that there are some additional sample configuration files that are included in the doc/ directory that are not installed but are probably worth taking a look at.