cygwin

How to include pipe character in an argument to a batch file from a bash script?

I have a shell script that I want to execute this line: qtvars.bat vsstart "qt.sln" /BUILD "Debug|Win32" This works fine (though I had to modify qtvars.bat, but that's beside the point). The problem is that I want the command to execute to be in a variable: EDIT: This doesn't work either, if I type it into bash. Previously I was typin...

cygwin ssh no putty yes?

I generated a keys with putty w/ no passphrase. putty works fine, but now i installed cygwin and would like to use ssh to login. For some reason i'm prompted for a passphrase? why? putty just logs straight in? i don't want to have to generate a new key and piss off the network admins. here is what it looks like in cygwin: $ ssh -i Doc...

Open a file from Cygwin

Hello, is there an equivalent to OSX open command in cygwin. open opens a file with the default application for that type. I want to do something like $ magic-command file.xls #excel opens as if file.xls would have been double-clicked $ magic-command file.txt #notepad opens as if file.xls would have been double-clicked You get the ...

cygwin compile error in sys/_types.h

I am trying to use cywin to get some linux code building on a win32 machine. I get the following VS.net 2003 error in ym compiler: "c:\cygwin\usr\include\sys_types.h(15): error C2144: syntax error : '__int64' should be preceded by ';' " and c:\cygwin\usr\include\sys_types.h(15): error C2501: 'extension' : missing storage-class or ty...

Are there side effects from using the -mno-cygwin flag in g++?

I have recently discovered that I can make windows executables with g++ that have no external dependencies, as long as I use the -mno-cygwin flag. My impression is that the compiler uses MinGW libraries instead of cygwin. Is this an effective way of using cygwin to build binaries without gpl licensing issues? Are there any technical si...

Windows cygwin equivalent of Mac OS X open command

I realize this is almost identical to http://stackoverflow.com/questions/501290/windows-equivalent-of-the-mac-os-x-open-command and http://stackoverflow.com/questions/264395/linux-equivalent-of-the-mac-os-x-open-command, but I'm asking specifically about a command I can run in the Cygwin shell to use the current Windows UI application bo...

Using Boost with Cygwin on Windows

This shoud be a simple problem for users more advanced than I am. :-) How do I use the boost library with cygwin on windows? I am programing with g++ using cygwin on a winxp machine. I need modified Bessel functions of the second order, so I downloaded the latest version of the boost library and installed it in 'c:\cygwin\lib\boost_ 1_...

Speeding up Ruby script startup in Windows or Cygwin

I've got a ruby script which takes about 30 seconds to startup. It takes that much because it tries to load all libraries and stuff. When I do "ruby.exe -v" it's instant. I don't want to touch the original ruby script, which is not written by me. What are the tricks to speed this process up? Can I precompile it? Can I precache al...

Executing a Cygwin process from .NET ?

I'm trying to launch Cygwin version of ruby.exe from a .NET application, but I'm stuck. c:\>"c:\cygwin\bin\ruby.exe" c:\test\ruby.rb /usr/bin/ruby: no such file to load -- ubygems (LoadError) As you see Ruby can't locate libraries because it's looking some Linux style paths. Obviously when I run ruby.exe from .NET since it can't fin...

Cygwin make error : *** target pattern contains no `%'

I got this error while (re)building, using cygwin make.exe version :3.81. Error : *** target pattern contains no `%'. ...

How to configure Eclipse with CDT?

Hello, I've been trying to use CDT with Eclipse 3.4 under Windows XP with cygwin. What do I need to do, in order to get startet? I used "eclipse-cpp-ganymede-SR1-win32.zip" found on the Eclipse homepage. Edit: The main problem is, that I cannot compile and run the code. In the run configuration, I tried gcc.exe for the C/C++ Applica...

Using the g++ C++ compiler from cygwin

I am trying to execute my first "Hello World!" in C++. I am using Windows XP, and I have installed cygwin, in which the g++ C++ compiler is installed. I have written a small hello-world program, and saved it in hello.cpp. From the command prompt I write: g++ hello.cpp But I get: 'g++' is not recognized as an internal or extern...

sort | uniq | xargs grep ... where lines contain spaces

I have a comma delimited file "myfile.csv" where the 5th column is a date/time stamp. (mm/dd/yyyy hh:mm). I need to list all the rows that contain duplicate dates (there are lots) I'm using a bash shell via cygwin for WinXP $ cut -d, -f 5 myfile.csv | sort | uniq -d correctly returns a list of the duplicate dates 01/01/2005 00:22 01...

Python one-liner to print every file in the current directory

How can I make the following one liner print every file through Python? python -c "import sys;print '>>',sys.argv[1:]" | dir *.* Specifically would like to know how to pipe into a python -c. DOS or Cygwin responses accepted. ...

git without bash/cygwin

I'm on a vista laptop, trying out git for the first time. I installed the msysgit version, and it installed a "git bash" shortcut on the desktop. When I run it, it seems to run in a cygwin kind of box, where C:\ is /c/ Is it safe to use git from the windows command line where /c/ is C:\? does that create any conflict with the way git e...

loop mount in cygwin

is loop mount in cygwin possible? ...

Errors on beginner bash script

Hi guys, could u help me out? I run this on cygwin as ./test.sh and I get unexpected end of file on line 51. Any thoughts? Thx in advance LAST EDIT: final version 'runnin on CygWin, the problem was with the line break, CrLf instead Lf. #!/bin/sh ################################################## ## USAGE ##############################...

svn+ssh with putty session, not working in cygwin

So I access my SVN repo using the good ol' putty session name trick. I can use TortoiseSVN and Subclipse just fine, the URL format looks like: svn+ssh://@/data/svn/my-code Example: svn+ssh://codecraig@dev-server/data/svn/my-code So, I've checked out "my-code" to C:\my-code, now I am trying to use cygwin to check-in some changes. I o...

g++ not working on Windows command prompt. Cygwin installed.

I have installed Eclipse and CDT (to use C/C++ in eclipse CDT is needed), as well as installing Cygwin so that I can compile my files. In environment variables I've set Path to include the following: "C:\cygwin\bin;" g++, make and GDC are all installed via Cygwin. I made sure of this by searching for them in the bin folder - they're al...

How can you recursively copy all of the *.foo files in src to target using cp and/or find?

cp -v -ur path/to/jsps/ /dest/path/ The above command copies all of the files that have been updated from the source directory to the destination, preserving the directory structure. What I can't figure out is how to copy only *.someExtention files. I know that you can use something like: find -f -name *.jsp -exec some awesome comman...