Cygwin Recipes

From NovaOrdis Knowledge Base
Revision as of 09:03, 12 May 2016 by Ovidiu (talk | contribs) (→‎Detecting Cygwin from a Script)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Detecting Cygwin from a Script

Option 1

if [ "$OSTYPE" = "cygwin" ]; then
   ...
fi

Option 2

cygwin=false;
os=unix
case "`uname`" in
    CYGWIN*)
        cygwin=true
        os=windows
        ;;
esac

Handling Path with Spaces in Cygwin

f [ "$OSTYPE" = "cygwin" ]; then
     java_executable=`cygpath "$java_executable"`
fi

"$java_executable" -version

cygwin Login Banner

... Is the content of /etc/motd.

Set up a sshd server

Set up a sshd server

Setup Terminals

Setup Terminals

Cygwin Version

cygcheck -V