1

I am trying to install JSCover, I snooped around and figured that to run .sh files on windows, the easiest option is to install cygwin. Which cygwin packages do I need to install to be able to run commands from cmd.exe on windows? If it is unclear what packages I am talking about please check screenshot below.

enter image description here

UPDATE: I have tried default packages by clicking next in widow above. When I try to run sh example-server.sh in cmd in admin mode I get following error. enter image description here

Or Cygwin installation only works within it's boundaries. e.g only things in Cygwin console window?

7
  • have you tried the normal packages? cygwin.com/install.html
    – NKN
    Apr 25, 2014 at 16:07
  • I 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. Apr 28, 2014 at 10:37
  • 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
    Apr 28, 2014 at 11:03
  • I am running on Windows 7 Apr 28, 2014 at 11:18
  • 1
    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
    – eyoung100
    Apr 30, 2014 at 16:55

1 Answer 1

1

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

Cygwin Terminal

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .