Cygwin Recipes: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Cygwin =Detecting Cygwin from a Script= <pre> if [ "$OSTYPE" = "cygwin" ]; then ... fi </pre> =Handling Path with Spaces in Cygwin=...") |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
* [[Cygwin]] | * [[Cygwin]] | ||
=Detecting Cygwin from a Script= | |||
==Option 1== | |||
<pre> | |||
if [ "$OSTYPE" = "cygwin" ]; then | |||
... | |||
fi | |||
</pre> | |||
= | ==Option 2== | ||
<pre> | <pre> | ||
cygwin=false; | |||
os=unix | |||
case "`uname`" in | |||
CYGWIN*) | |||
cygwin=true | |||
os=windows | |||
;; | |||
esac | |||
</pre> | </pre> | ||
Line 15: | Line 29: | ||
<pre> | <pre> | ||
f [ "$OSTYPE" = "cygwin" ]; then | |||
java_executable=`cygpath "$java_executable"` | |||
fi | |||
"$java_executable" -version | |||
</pre> | |||
=cygwin Login Banner= | |||
... Is the content of <tt>/etc/motd</tt>. | |||
=Set up a sshd server= | |||
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;"> | |||
:[[Cygwin Set Up a sshd Server|Set up a sshd server]] | |||
</blockquote> | |||
=Setup Terminals= | |||
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;"> | |||
:[[Cygwin Setup Terminals|Setup Terminals]] | |||
</blockquote> | |||
=Cygwin Version= | |||
<pre> | |||
cygcheck -V | |||
</pre> | </pre> |
Latest revision as of 09:03, 12 May 2016
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
Setup Terminals
Cygwin Version
cygcheck -V