cygwin

Where can I download an offline installer of Cygwin?

I need an offline installer with most of the utilities commonly needed. Somehow the default installer confuses me with all its package selection. I installed Cygwin but I can't find the diff utility after the installation. ...

Cygwin - run script silenty from "run command"

I have script lets say: C:\foo.bsh I want to be able to run this command via the windows run command: Start -> Run Windows Key + R and type something small like 'foo' and hitting return. However, I do not want a cmd prompt to be visible. This script does some preprocessing for an IDE. I do not want the cmd prompt to be open for t...

Can I use mSysGit and Cygwin's git?

After migrating to Windows, I'm using msysgit with its included bash shell, and that's working well for me. But I have issues: our ant build process won't run in that shell, I'd like to use Cygwin's xterms instead of the Windows command window, since the terminal compatibility isn't good enough to run everything else I'd like in that wi...

Best terminal environment for Cygwin/Windows?

Today I run Cygwin with rxvt using the following startup line: rxvt -bg black -sl 8192 -fg white -sr -g 150x56 -fn "Fixedsys" -e /usr/bin/bash --login -i This gives me a resizeable native Windows window which is much better than the standard "DOS box" the default cygwin.bat provides. However, the current configuration does have a co...

How do you run a crontab in Cygwin on Windows?

Some cygwin commands are .exe, so you can run them with the standard Windows Scheduler, but others are not .exe extension so cant be run from dos (it seems like). For example I want updatedb to run nightly. Any ideas on how to make cron work? ...

Suggestions for porting linux application to windows

I'd like to port an application written under linux to windows. Currently I'm using Cygwin but I'm curious if there are any other options that don't force me to release my source since I'm not in the position to do so right now. Are there any other options short of having to completely re-write it or buying a license? ...

Can I use cygwin to script a hudson build step?

I've tried executing the following: #!C:\cygwin\bin\bash.exe ls ${WORKSPACE} But that doesn't find ls (even if it's on the windows path). Is there any way to set this up? UPDATE: In other words, I want to be able to set up a build step that uses cygwin bash instead of windows cmd like this page shows you how to do with Python. ...

Anyone have any problems installing OpenSSH via Cygwin on Vista 64 Bit?

I was able to install the sshd service (after A LOT of problems), and was able to ssh on the machine that I installed it on by saying ssh [email protected] AND ssh localhost. However, all other machines on my local area network could not ssh to it. I checked and port 22 was indeed open, and SSH was listening on that port. Anyone gone thr...

Can I script a Cygwin install to include certain packages?

I install cygwin frequently enough that it would be handy to have the process automated. Specifically, I want to be able to specify ahead of time the packages that I want to install, so that I don't have to remember them at install-time. Is there any way to do this? ...

invalid arithmetic operator

Hello, working with cygwin and writing a script to show my my current ip address minus 2. For some reason it is giving me the follwing error: ")syntax error: invalid arithmetic operator (error token is " this is the script I am using. $ cat test3.sh #!/bin/bash # function IPADDRESS { v=$4 echo $1.$2.$3.$((v-2)) } ADDRESS=$(...

gdb won't accept stdin redirection in emacs

I'm trying to debug a program using gdb mode in emacs. It was compiled with g++, and I'm using cygwin. My program takes one command line argument, and also takes input from stdin, which I redirect from a file, like this: program.exe inputFile.dat <otherInput.dat The problem is, gdb is sending the string "<otherInput.dat" as a comma...

How to find unique lines in a text file from command line?

I would like to know how to extract a list of unique lines from a text file. Preferably through Cygwin. ...

What is the difference between Cygwin and MinGW?

I want to make my C++ project cross platform, and I'm considering using Cygwin/MinGW. But what is the difference between them ? Another question is whether I will be able to run the binary on a system without Cygwin/MinGW ? ...

linking *.o files in Windows

When I'm linking .o files with the LD linker using MinGW on Windows, it gives me the error "file.o: File not recognized: file format not recognized". I've tried to do it with cygwin instread, but the same thing happens. Any suggestions? ...

Git under windows: MSYS or Cygwin?

I plan to migrate my projects over to git, and I'm currently wondering which is the best and / or most stable option under windows. From what I gather I basically have 2.5 options: MSYSgit git under Cygwin (aka 2.5) MSYSgit from a Cygwin prompt (given that Cygwin git is already installed). Note: IMO Cygwin in itself is a big plus as...

Why is it that Cygwin can run .bat scripts?

When I execute a .bat script from bash in Cygwin, by what mechanism is it running? I understand that if I run a .EXE it will launch, regardless of whether the .EXE is from Cygwin or from a more traditional environment. I understand that when I execute an executable script with #! at the beginning that Cygwin supplies the magic for it t...

cygwin + rsync

I would like to backup a dir in Win XP on a Solaris server via rsync. I installed cygwin but when I type rsync I get 'command not found'. How can I install rsync? And how can I install ssh. I have installed Poderosa as ssh client (a sort of putty). ...

Problem with shell script

Hi all, This is a very simple bash script i wrote: #!/bin/bash ITEM_LIST=items.txt LOG_FILE=log.log TOTAL_ITEMS=$(wc -l ${ITEM_LIST} | awk '{ print $1 }') let NOT_FOUND=0 cat ${ITEM_LIST} | while read item; do grep "${item}" ${LOG_FILE} > /dev/null FOUND=${?} if [ ${FOUND} -ne 0 ]; then let NOT_FOUND=NOT_FOUND+1 ...

Help installing C++ for Netbeans

Hello, I am trying to install c++ for netbeans.. I tried installing the cygwin and mingw but i can't compile because the make file that comes with Mingw is incompatible .. ...

Why doesn't Win32::ODBC find the ODBC.dll under Perl 5.10 and Cygwin?

I'm trying to use Perl ODBC to connect to a Microsoft SQL server. My problem is that Perl 5.10.0 is having a problem using the Win32 ODBC driver. If I run a Perl shell and execute this one line, I get errors. use Win32::ODBC; Can't load '/usr/lib/perl5/vendor_perl/5.10/i686-cygwin/auto/Win32/ODBC/ODBC.dll' for module Win32::ODBC: No ...