Linux-like environment for Windows making it possible to port software running on POSIX systems (such as Linux, BSD, and Unix systems) to Windows.

learn more… | top users | synonyms

0
votes
1answer
76 views

Emacs key problem

I am using Cygwin to connect to an Ubuntu installation, and for some reasons my Ctrlh for the help has been remapped to CtrlDel. When I actually type Ctrlc,h I get the error: No operation mapped ...
1
vote
2answers
609 views

Run a command at a certain time in cygwin

I am writing a bash (.sh) script for cygwin. I want to run a certain command at specific time. I tried the following: echo "test" | at 19:00 but I get the following error: The AT command has been ...
2
votes
3answers
438 views

Command substitution in for loop not working

I want to keep all files not ending with .bat I tried for f in $(ls | egrep -v .bat); do echo $f; done and for f in $(eval ls | egrep -v .bat); do echo $f; done But both approaches yield the ...
1
vote
1answer
391 views

Error not a valid identifierd when executing shell script [duplicate]

I have the following shell script in order to connect to database and do some tasks. echo Please enter userid: read USER_NAME echo "Please enter password:" read -s PASS SID=${ORACLE_SID} if [ ...
0
votes
2answers
555 views

Vi for Cygwin syntax

How can I make vi in Cygwin highlight the syntax when I open a file by default? I know that I can type in the command "syntax on" but I would prefer to not do this all the time.
9
votes
6answers
6k views

Are cygwin vim commands different than normal vim?

I am unable to edit text files using vim in cygwin. I have to press i many times to insert text. Sometimes it works and sometimes doesn't. Whenever I move cursor up down I have to press I many times. ...
1
vote
2answers
2k views

Using mintty as default terminal on Cygwin and default shell as bash

There is already one answered the question at Best way to use a shell with Cygwin in Windows 7. That is to start Cygwin with C:\cygwin\bin\mintty.exe - With that $SHELL = /bin/sh How can I launch ...
0
votes
0answers
80 views

Issues with process substitution

I am quite new to Linux and currently I am using Cygwin on my Windows machine. My problem is I made a script to automate my analytics work and used process substitution in it and it worked fine when ...
14
votes
3answers
7k views

How do I get rid of Cygwin's /cygdrive prefix in all paths?

I'm switching to Cygwin from the bash shell that ships with Git for Windows, and encountering a strange problem. Someone thought it would be a good idea to add /cygdrive/ to all paths, while I think ...
3
votes
1answer
3k views

How do I configure OpenCV and Cygwin to work together?

I'm trying to configure OpenCV-2.2.0-win32-vs2010 with Cygwin to work together. Any ideas on how I can do that?
0
votes
1answer
64 views

cw and . does not work as expected in vim on character deletion

If I have the following non-sense text: Hi woman! What is your name? I know what you mean... Yeap. Yeap. Again :) Hi woman! What i s your name? I know what you mean... Yeap. Yeap. Again ...
0
votes
1answer
175 views

I'm able to remotely ssh into Cygwin on XP, but it warns “Could not chdir to home directory” and my /bin is almost empty

I've made a firewall exception, opened ports 22 through 443 to the correct internal IP (I think), and am able to log in using my external IP, but it's like I have very limited view access to almost ...
2
votes
1answer
1k views

How do I preserve the history file of cygwin bash across independent sessions?

So my home directory does have a .bash_history file, but it refuses to grow any bigger for some reason. I've already changed the .bashrc settings to set the history size to 99999 and the history file ...
2
votes
2answers
186 views

is it possible to trigger `ssh-add <key>` only when I ssh into a box? (from Cygwin)

I've got my .bash_profile set up to eval $(ssh-agent) so I can quickly connect to servers. If I add ssh-add ~/.ssh/id_rsa_my_key to my .bash_profile as well, I'll have to type the ssh key passphrase ...
7
votes
2answers
10k views

How to alter PATH within bash script?

I have several projects that require me to change versions of Java/Grails/Maven. I'm trying to handle this with some Bash scripts that would make the changes. For example: #!/bin/sh export ...
0
votes
1answer
89 views

Why does exec file generate 4 processes in Linux? [closed]

I build my RTAI-model-sourceļ¼ˆgenerated by simulinkļ¼‰ in CygWin with gcc-linux-4.1 (cross-compiler of CygWin) on Windows, and generate ELF successfully. and the ELF runs correctly on Ubuntu. After the ...
4
votes
4answers
4k views

find command in cygwin giving parameter format not correct

I am using cygwin in my windows machine. I am trying to do a find and it is giving parameter format not correct. Why is that? $ ls bootstrap.jar catalina-tasks.xml catalina.bat catalina.sh ...
0
votes
1answer
222 views

Red5 can't find JAVA_HOME

I'm setting up a Red5 server on Cygwin I get this /usr/share/red5$ sh red5.sh Running on CYGWIN_NT-6.1-WOW64 Unable to locate Java. Please set JAVA_HOME environment variable. However, I can also ...
2
votes
1answer
2k views

Execute bash script using CygWin

How do you execute a bash script using CygWin? I am trying execute a bash script as part of a build.xml. This is the code snippet, <property name="cygwinpath" value="C:/cygwin/bin/"/> ...
2
votes
2answers
737 views

Cygwin: readline lib loaded in different locations

Within cygwin, almost each unix command I type prints a warning message, takes time and eventually gives a correct result: -bash-4.1$ ls 0 [main] bash 7468 child_info_fork::abort: cygreadline7.dll: ...
2
votes
1answer
207 views

ssh/scp works but rsync just constantly says “no”

Hi I have a windows 2003 server that I need to back up onto a linux client so I install cygwin on the Win2k3. On the Win2k3 I have enabled ssh, scp but (because the Win2k3 server uses an customised ...
3
votes
1answer
309 views

Xterm is not completely erasing field lines

We are running Windows Clients with Cygwin XServer that has a bash script application running on AIX Unix. We have a login script using expect to ssh into the server and then xterm to create the ...
2
votes
3answers
3k views

How to Cygwin Xwin -query an Ubuntu 11.10 Xserver?

I am running Cygwin 1.7 on Win7 Pro x64, and I can query my Ubuntu 10.04 LTS server just fine. XWin.exe -clipboard -once -rootless -nodecoration -notrayicon -query $IP_ADDRESS I recently installed ...
1
vote
1answer
2k views

Reading from USB serial port under Cygwin

I am actually using Cygwin, but it is my understanding that it responds to Unix commands so hopefully I am in the correct place. I have an Arduino hooked up via USB to my LapTop for data reading. I ...
2
votes
1answer
90 views

Why is the output of find sorted in Cygwin but not in Solaris?

I wonder why find does not behave in the same way in Solaris as in Cygwin or Linux. I have a bunch of directories that have files called CS##########. Each # is a digits but there are always 10 ...
3
votes
3answers
185 views

Delete all but largest file of specific type

I am trying to organise the album art in my music collection so that only one image is assigned to each folder. My directory structure currently looks like: /path/to/music/Album Name/ ...
1
vote
2answers
288 views

“watch” command not found in Cygwin? [duplicate]

Possible Duplicate: Cygwin has no watch command? I am in the process of learning Unix commands; I started a few days back. I read a post here and tried to use the watch command, but my ...
3
votes
1answer
128 views

Why does insert-mode map “<F4>” unpredictably inserts itself or executes intended key strokes?

In Vim 7.3.1-762, mintty 1.1.2 (xterm), cygwin, Windows XP, the insert-mode map <F4> executes the intended key strokes at one time but inserts itself at another time. This undeterministic ...
3
votes
1answer
248 views

Pausing rsync via bash script?

Is there a way to pause rsync via command line, if it transfers data for over X minutes? I'm working on using it as a backup and would like it to pause every once in a while to prevent the hard disks ...
2
votes
1answer
3k views

I'm not getting syntax coloring in vim (using Cygwin)

I've been so far unable to figure out why vim's syntax coloring is not working for most files, and it's driving me batty. In case this is relevant: I'm working in Cygwin (more ...
0
votes
1answer
3k views

Remote GUI login from Windows machine to Linux machine [duplicate]

Possible Duplicate: Accessing Linux server from Windows machine in graphical mode via SSH How I can login to a remote CentOS' GUI from my Windows 7 laptop?
2
votes
1answer
195 views

Is there a way to control the speed at which Curl reports progress?

I'm using Curl in Cygwin to automate a daily download. I want to keep progress in a log but Curl is just a little too noisy for my taste. I tried man curl and Google, but didn't find anything. Can I ...
2
votes
1answer
117 views

groff to PS Conversion

I am very new to UNIX, learning groff with the help of cygwin on Windows XP SP3. I have downloaded groff-binaries from here, but using cygwin, I could not able to re-produce ps files. I have used ...
3
votes
2answers
434 views

how to grep for c:\

I'm using cygwin's grep to find all instances of hardcoded paths on c drive. doing: grep -r "c:\\" . gives grep: trailing backslash Does anybody know how I can do this?
14
votes
5answers
9k views

Best way to use a shell with Cygwin in Windows 7

I installed Cygwin, to be disappointed that bash by default runs within "cmd.exe". I googled around and found Console2. It's not a particularly well-designed application, as doing adjustments is ...
5
votes
1answer
2k views

Why is vim creating files with DOS line endings?

I have set fileformat=unix in my .vimrc, and yet if I create a file in vim (running in Cygwin) it persists in creating DOS files, and I have to run the little cotton-pickers through dos2unix to ...
5
votes
1answer
1k views

Why is Cygwin not sourcing my .bashrc?

I'm switching to Cygwin from the bash shell that ships with Git for Windows, and for some strange reason the .bashrc file is not being sourced when I open a new Terminal. I have to source .bashrc ...
5
votes
3answers
466 views

An equivalent to OS X's “open” in Cygwin?

I know this may be a slightly strange question, plus the fact that I'm asking it here. The reason is that whenever I ask Windows-people about this, or even regular Cygwin-users, they don't seem to ...
0
votes
1answer
115 views

How do I get bcvi installed and working (with Cygwin and Perl 5.8.8)?

I'm trying to install bcvi (under Cygwin), and there are apparently no directions that apply to this setup. The directions at http://sshmenu.sourceforge.net/articles/bcvi/#installation state that ...
0
votes
1answer
147 views

Cygwin installation message [closed]

I want to ask about this error? The error states : This is the first time you've installed Cygwin 1.7.x. Please be advised that this is a major release. If you have not done so already, ...
3
votes
2answers
467 views

Change string occurrences in file while respecting DOS new line sequences

I use Visual Studio for my C# development while using Cygwin for some of the tasks that require scripting. Recently I wanted to change all occurrences of string AAA to BBB in my project's files. I ...
1
vote
1answer
2k views

For cygwin, how do I export the output in a terminal into a file?

I'd like to be able to export the output (and error messages) of my cygwin terminal in a file, especially since I have to click a lot of buttons in order to "mark" the stuff in the cygwin terminal ...
1
vote
1answer
469 views

CUPS compilation fails on Cygwin

I was brave and tried to compile CUPS in a 32-bit Cygwin environment. I used the standard sources from the tarball. All went fine until linking. http://pastebin.com/QSKvLSmT Here's the end of the ...
3
votes
1answer
329 views

Why are these aliases failing?

I am attempting to put some alias definitions in .bashrc. Like this: #Convienience aliases alias ll='ls -l' alias ldir='ls -p | grep "/"' #Temporary aliases alias mvFooLog='mv ~/Projects/Foo/Log.txt ...
1
vote
2answers
322 views

need portable crontab host-checking/failover logic across Linux & Cygwin

A host-ping test that always works correctly from the interactive bash command line in Cygwin, is behaving incorrectly in its own crontab--always selecting the second host--and I can't figure out why: ...
2
votes
1answer
267 views

Why doesn't my new cygwin .bashrc interactive check work?

I just updated Cygwin and the new .bashrc contains this line right at the top: echo "BEFORE TEST" # If not running interactively, don't do anything [[ "$-" != *i* ]] && return echo "AFTER ...
1
vote
1answer
521 views

How can I make custom key bindings work even while SSH-ed into another machine?

I've added "\eOD": backward-word "\eOC": forward-word to my .inputrc to get ctrl-arrow key mappings sorted out in Cygwin allowing me to move forward and back fine. When I SSH to any other Linux ...
-1
votes
3answers
2k views

printf white space character in bash script

How can the white space character be escaped in printf for the purpose of this script that currently runs in a Cygwin client? The line containing the whitespace (which by itself works from the command ...
7
votes
2answers
2k views

How can I set up Cygwin to automatically update and download without the GUI?

How can I set up Cygwin to automatically update itself? How can I get Cygwin to download a package without having to go via the GUI thing?
3
votes
1answer
944 views

installing column unix utility on windows

I would like to be able to use the BSD unix utilities: column, join and paste in my Cygwin installation. It seems that they are not available, or I cannot find them. Is there a way to install them so ...