Running sh is only native inside Cygwin. Click the Cygwin Shortcut on your Desktop then download the file natively using a tool like wget in Cygwin, then run the script, otherwise run the jar file natively in Windows
As you can see, my programmer's Teststand in my Office has Cygwin installed because I miss my Gentoo Desktop at home. The only thing that isn't native here is the DRush Command Prompt, so that I can fool w/ my website on my lunch break. It contained the wget.exe that was added to my $PATH after installing the Windows Compliant DRush, but the same idea applies if you used the Cygwin installer to fetch the wget package. The $ indicates a bash prompt that will run scripts natively inside the window only. See Chapter 3 of the Cygwin User's Guide to understand how to get the output you may need out to Windows.
Use the wget you install to download the package in your post and it should download to your home directory. Use pwd
to find out what that directory is and the information from Chapter 3 to gather the output you need. UNLESS YOU'VE BEEN USING CYGWIN AWHILE, DO NOT leave the cygwin terminal open while messing with the Windows Physical Location, and vice versa
have you tried the normal packages? http://cygwin.com/install.html
– NKN – 2014-04-25T16:07:51.010I did. When I try to run sh example-server.sh in cmd in admin mode I get: 'sh' is not recognised as internal command... error. – Matas Vaitkevicius – 2014-04-28T10:37:16.343
if you are using ubuntu, you do not need to have sh as a command, just run the file:
>> example-server.sh
or>> sudo example-server.sh
– NKN – 2014-04-28T11:03:48.507I am running on Windows 7 – Matas Vaitkevicius – 2014-04-28T11:18:33.343
1Running sh is only native inside Cygwin. Click the Cygwin Shortcut on your Desktop then download the file natively using a tool like wget in cygwin, then run the script, otherwise run the jar file natively in Windows – eyoung100 – 2014-04-30T16:55:49.743
@ECarterYoung Could you post it as an answer please. – Matas Vaitkevicius – 2014-04-30T17:00:00.093
Done, tried to be as thorough as possible... – eyoung100 – 2014-04-30T17:28:03.193