0
votes
2answers
36 views

cmd cannot execute file inside of /cygdrive/c/

I am running a Ruby on Rails application - inside the app there is a Ruby Gem I've loaded which determines the location of an executable file called pngcrush. The way it does this is that it runs the ...
0
votes
1answer
42 views

Tried Installing ZSH through cygwin and then trying to use zsh through Cmder

I tried to install Cygwin (64 bit version) on my computer, and it went through hunky-dory until at the very end, autorebase.bat failed with exit code 1. I read through the logs and they weren't too ...
0
votes
1answer
57 views

Lowercase L key does not work in cygwin terminal

This is probably the weirdest software problem I have ever come across. When I press L key in cygwin command line I see no reaction whatsoever. All other buttons on the keyboard work perfectly. In ...
2
votes
2answers
75 views

How can I run msiexec from cygwin to unpack a msi?

I need to unpack (not execute, unpack) a msi in a cygwin makefile. If I invoke from the windows command prompt the following msiexec /a package.msi /qn TARGETDIR=C:\foo The package is correctly ...
0
votes
1answer
18 views

Problems installing JSCover 0.2.0 on Windows 7

I am trying to install JSCover 0.2.0 on Windows 7. I was using this guide, but failed on step 2 where I need to run the example-server.sh Do I need to run it from windows command line, or cygwin ...
1
vote
1answer
98 views

what cygwin packages do I need to install to be able to run commands from cmd.exe on windows?

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 ...
0
votes
2answers
390 views

Cygwin: Run a script in mintty/bash

Initially asked on SO.com, but I closed it. I think it better fits SU.com. Please tell me if it is also not the right place. I want to add a context menu to a .sh file to run it in cygwin. I tried ...
3
votes
2answers
329 views

Practical (closer to the classical Linux one) way to use (automate) SUDO for CygWin

Being able to use sudo commands in CygWin is useful, and faster than opening an elevated shell: Luis@Kenobi /cygdrive/c/Users/Luis $ net user /add TestUser System error 5. Access denied. Luis@Kenobi ...
2
votes
1answer
35 views

How do I reverse the text in a file / stream in UNIX / Cygwin?

I have a block of text that I want to put in reverse-characer order (backmasking). Is there a simple way to do that via a Unix / Cygwin command-line?
0
votes
1answer
91 views

How can I select what user account will run a Windows service (run as) from command-line?

As one of the steps for installing CRON daemon for CygWin in Windows, it is worthful (not mandatory on WinXP, but seems to be greatly adviced since Win7) to change (along with some others ...
1
vote
1answer
285 views

Running a CygWin shell: what windows console (DOS) commands do disappear?

If under my Windows with CygWin (v2.831 32bits) I do: cmd mode 80,50 the screen width changes, but if I open a CygWin terminal, like bash: C:\cygwin\bin\bash --login -i $ mode 80,50 bash: ...
1
vote
2answers
555 views

How do I get Linux commands and scripts to work on Cygwin?

I'm back with a follow up question. How do I get Linux commands to work on Cygwin? First I asked you what tool should I use to help me run my Linux scripts on Windows and you suggested Cygwin and I ...
0
votes
0answers
25 views

Remove Windows link associations from recursively linked files (created by mistake)

So, because of Windows' bone-headed reverse syntax and the generally piss-poor command line utilities, I accidentally created several hundred recursive links on files in many directories and nested ...
1
vote
0answers
42 views

Why can I remove certain files in Cygwin but not Command Prompt?

I have a folder that contains files I have compiled in .NET (however this question could easily apply to a non-programmer's folder too, e.g. containing word documents or whatever.) When I try to ...
0
votes
1answer
151 views

how to call .R script using .sh in windows

I have an analysis to run in skatMeta (R package). I received a runscript.sh that calls myfile.R to run the analysis. However, the script is written for Linux, but I only have Windows. I installed ...
1
vote
1answer
150 views

Search command history in Console2 that mimics CTRL+R from cygwin

I am trying to use Cygwin inside of Console2 (for the tabs). However, I use CTRL+R to search my command history in a fuzzyish way, a lot. In Console2, CTRL+R is a hot key for renaming the tab. I ...
3
votes
0answers
98 views

Installing GNU mailutils on windows

I'm using Windows 7, and would like to use the GNU mailutils, specifically mu and mu4e. Unfortunately, these are not available as Cygwin packages. Is there any way to use GNU mailutils on windows ...
3
votes
1answer
197 views

BSD fortune for Windows command prompt or DOS

This is probably a stupid question, but I was just wondering if the following is doable: If I should just forget about it and go the VM/ full GNU-Linux OS route, that's fine.After mucking about with ...
1
vote
1answer
229 views

Add commands auto completion to Cygwin

I'm looking for a 'modernized' cmd.exe and I find myself quite comfortable with Cygwin. However, I can't make Cygwin auto complete some "commands" I need (programs in SysInternal Suite like ...
2
votes
3answers
187 views

It there any tiled console/command prompt for Windows OS?

I need to monitor 2-4 console windows at the same time. Now I'm using 4 cygwin mintty windows, each takes 1/4 of my whole desktop space. The problem is that they aren't tied together. And if I switch ...
0
votes
3answers
582 views

Copy a list of files preserving directory structure, without scripts

Is there a way to copy a list of files, that share a common base directory, preserving their relative directory structure? The files with relative paths are listed in a text file. edit I have the ...
1
vote
1answer
98 views

Less in cygwin can't read file created from redirected windows cmd script

I'm running windows cmd script from windows console and redirecting output to a file by mycommand.cmd > 'filename ' 2>&1 the problem is, when I'm trying to read that file using less under ...
0
votes
2answers
226 views

Why won't Cygwin run windows apps that interact with the shell/command line?

After a recent update, Cygwin bash shell works for any commands that don't require interaction, but if an app needs interaction (for example the python shell), it won't work, the prompt never appears, ...
2
votes
1answer
128 views

How do you call ActivePython from cygwin shell?

I installed ActivePython which is a Python version 3.x installation for Windows. I renamed the interpreter to be activepython.exe so as to allow calling it from cygwin without modifying /etc/profile ...
2
votes
2answers
553 views

How to invoke Windows' gvim in a Windows environment from within Cygwin?

When I give a gvim command in Cygwin, I want it to invoke the gvim I've installed in my Windows. I tried writing a function in my .bashrc called gvim that invokes the gvim.exe in my Program Files ...
1
vote
0answers
113 views

Pylint on Windows XP and Cygwin

Having recently upgraded my Python installation from 2.4 to 2.7 (ActiveState), I can no longer get pylint to work in either Cygwin: $ pylint C:\Python27\Python.exe: can't open file ...
4
votes
1answer
129 views

Saving a process ID when detaching a command in Bash

When I detach command: $ command & The result is a printout to STDOUT: [1] < PID > I would like to monitor this PID. However, I cannot write this output anywhere but STDOUT! How can I ...
0
votes
4answers
1k views

How do you pass a file or folder containing whitespace as an argument to a command-line program in a GNU/Linux or Cygwin environment?

There are occasions when you are working with files and folders that contain spaces in them. The problem is any time you try and pipe files / folders containing whitespace to another command-line ...
0
votes
0answers
271 views

How to politely kill windows process from cygwin

I do have a bat(startJboss.bat) file that starts a JBoss server. When I start it it creates an output to standard cmd (windows) console. When I want to politely end this process I just hit Ctrl + C ...
0
votes
1answer
57 views

What is the way in cygwin to install everything from a local directory from the command line

I have a local repo of cygwin that I would like to deploy across various test machines. Is there a command that I could script out to install cygwin along with all of the packages in my local ...
2
votes
1answer
454 views

Understanding the terminal and shell interaction

For a long while my understanding about a terminal in unix-like systems has been that it launches the shell process and provides a user interface to it by communicating with it over it's stdin, stdout ...
4
votes
2answers
1k views

How to persist bash history?

I don't know if this is expected, but my history is not saved across sessions. This is to say, if I close the window, then when I open it again, the history is empty. How can I persist it across ...
10
votes
1answer
2k views

Why is java.exe not visible from cygwin, but is visible from command-prompt?

Why can't I see java.exe from Cygwin?
0
votes
1answer
596 views

How to escape the arguments correctly when calling cygwin bash -c?

I am trying to call the scanimage command (from the SANE tool) from inside cygwin though I think that my problem is one of general escaping so maybe what I am calling doesn't matter. Anyway... The ...
4
votes
1answer
757 views

Is there a command line tool in cygwin to copy a file to the clipboard?

I'd like to do something like this: On the command line, copy a file to the Windows clipboard In Windows Explorer, paste the file/files into a current location Is there a simple tool to do this, ...
1
vote
2answers
3k views

Color in Cygwin terminal

I've installed cygwin because I'm a bit fed up with the Windows terminal not being great. The only problem I'm having is the lack of colours. You can see the problem in the following 2 screenshots ...
0
votes
1answer
268 views

Cygwin shell is overriding my Windows shell

I'm not sure what I did, but I've somehow got Cygwin installed in such a way that even when I try to run an ordinary windows shell, Cygwin is interfering. I have batch scripts that I want to run in ...
2
votes
2answers
450 views

Copy all files from a directory tree into one directory

I'm running on Windows but have Cygwin so Windows or simple Linux versions are both OK. My camera-phone stores images in a directory tree based on date, but still appears to name each file uniquely. ...
1
vote
2answers
1k views

Windows 7 environment variable not removable

I installed MKS on Windows 7 and with it MKS Toolkit was silently installed. This also seems to set some global environment variables like "TERM" and "TERMCAP". As these variables won't work together ...
13
votes
2answers
16k views

How can I access volume levels from the command line on Windows 7?

What I need I'm looking for a tool or a script that allows me to access the Windows volume levels from the command line. Ideally it would allow me to get and set all volumes including application ...
1
vote
2answers
326 views

List all files in a directory matching a string and copy output

I'm trying to create a series of playlists on my MP3 player, running Rockbox, by finding a file matching a string, using find /cygdrive/g/MUSIC -type f -name "Search Criteria" | ...
2
votes
2answers
997 views

Command line tool to search docx file under ms dos or cygwin

Is there a command line tool that is able to search .docx file under MS DOS or Cygwin ? I have tried Grep, it's not working with .docx while working fine with .txt file. I know I could always ...
0
votes
1answer
514 views

Pseudo- Sudo on Cygwin/bash

I need sudo to work, well not sudo itself but a way of allowing the sudo commands to work as described here. This would be great however the sudo lines have extra arguments, like : sudo -u user bash ...
1
vote
5answers
942 views

Is there a shortcut for /cygdrive/

Is there a shortcut for typing /cygdrive/ for every path? Is it possible to alias /cygdrive/ to /cd/ for example?
4
votes
1answer
691 views

How do I make ESC clear a line in Bash Under Windows instead of Ctrl+u?

I use bash in Windows, both in Cygwin and in Git Bash (part of Git for Windows). In bash unlike in the Windows cmd.exe Esc does not clear the line, only Ctrl + U. How can I make clear the line also? ...
0
votes
1answer
2k views

Trouble using Cygwin rebaseall: "only ash or dash processes [duplicate]

Possible Duplicate: Running rebaseall on Cygwin I'm following the instructions from this post on how to run the rebaseall command: Cygwin fatal error unable to remap.. What does it mean? ...
1
vote
1answer
235 views

cygwin file command not detecting mpg?

I have noticed that the file command in linux, is detecting this mpg as data? http://www.berkut13.com/videos/brakeup.mpg it detects flv ok but this mpg file it doesn't.. i'd like to be able to ...
3
votes
3answers
7k views

Get display resolution from windows command line

I have seen several suggestions about programs to change the resolution from the command line. However I just want to display it, not change it. On linux I can use xrandr or xdpyinfo to get this ...
4
votes
2answers
2k views

How do I start cygwin with a specific command?

I want to start Cygwin and it should instantly connect to some server: $ ssh user@1.1.1.1 for example, how I can achieve this?
4
votes
4answers
2k views

What's the command prompt's equivalent to cygwin's ctrl+z

Whenever I want to quit something in Cygwin, Ctrl + Z usually does the trick. What's the equivalent in the command prompt?