cygwin

What is the cause of different TCL script behaviour when redirecting the output to a file under Cygwin ?

When calling script as tclsh ./TestDriver.tcl TestList the tcl script stops after one (?) line. But when called with output redirected to a file tclsh ./TestDriver.tcl TestList >bar.out it runs smoothly. Any ideas what might be the cause of such behavior ? ...

Defaulting cygwin to use CRLF

I'm using a windows PC and editing files checked out from SVN, which has files checked in using DOS. I use cygwin and when I either create a new file or patch a file using cygwin binaries the file format is unix. Really I need to always use DOS format for these so my colleagues are not inconvenienced. Is there any way I can have cygwin...

Cannot Commit in Cygwin/Git, Windows XP [Unrecognized TERM Type]

Same issue when I try to open vi. bash is the shell I'm using. vi, or git commit, fails miserably saying "Unrecognized TERM Type". I did some googling. They all suggests setting the TERM type manually like export TERM=vt100 Tried and failed. stackoverflow is going to be my last hope. or maybe I should let go of cygwin/git and try s...

Cygwin/Xming : Running Java application with drag and drop support in x-server

I have a Java application using jTree with 'drag and drop' support. When I run it on a SuSE box (Server details below ) and redirect the GUI interface using xming x-server (version details below) to a windows box , the drag and drop functionality in jTree stops working. After analyzing a bit I found that X-server is able to recognize th...

Dependency walker on cygwin app gives conflicting information?

I am using the dependency walker to figure out why my link of a cygwin ported application is not correct. It states that cgywin1.dll is missing the following symbols: AddAtomA FindAtomA GetAtomNameA GetModuleHandleA Looking around, I see that these are supposed to come from -lkernel32 on the link line, which I have added at the end...

Cygwin CVS - Cannot allocate memory

In creating a sandbox (checkout) from our CVS repository using Cygwin CVS and having direct filesystem access (NTFS), I am getting the error: [checkout aborted]: Could not map memory to RCS archive {archive_path}: Cannot allocate memory The archive file found at {archive_path} is 1.005G (1052905061 bytes) on disk. Doing a checkout w...

CakePHP Bake with Cygwin on Windows 7

I've been working with CakePHP for a few weeks now and I really enjoy it. I skipped over the Bake Console figuring that I'd learn more if I wrote everything by hand. Now I'd like to actually use this tool so I setup an alias in my Cygwin profile but every time I type cake bake it just hangs. I can't even use task manager to exit out of t...

Automating cygwin commands in windows command line (and ultimately in MsBuild)

Hi all: I have a situation where I have a few cygwin commands which I wish to be run in Windows command line e.g. chmod 777 /home/administrator/* Currently I have to manually type in cygwin.bat, then enter the above command in cygwin. I was wondering whether it is possible (and if so, how) to have these steps automated in Windows co...

Command/Syntax for specifying dynamic profile name in cygwin

Hi all: What is the syntax for specifying a dynamic profile name in linux command? E.g. perl genhtml /home/$(usrProfile)/* What is the syntax to replace usrProfile if it is dynamic? Thanks. EDIT: I'm running this in Windows Command line under cygwin. UPDATE: I have tried doing the following: $ECHO $HOME chmod 444/home/~username/...

git svn rebase problem on windows

Hello, I have a problem with git. Basically, here is what I have. I access a svn repository through git. Until now, on python files, everything worked fine. But lately I also added some pyd, dll and lib files on the repository. THe first update went well. But then, these files have been modified and since then I can't update. These fil...

Replacing file using "sort x.txt > x.txt" in Cygwin

Why is it that "sort x.txt > x.txt" clears the contents of a file while "sort x.txt > y.txt" writes the sorted file to y.txt as you would expect ...

How to best integrate Emacs and Cygwin?

There are a ton of ways to integrate Cygwin with Emacs on Windows. EmacsWiki shows a few ideas. Here are the options that I've found: Use the Emacs that comes with Cygwin. (Then find a way to get to cmd.exe if you want it.) Use NTEmacs and Cygwin as a "sometimes" shell. (A special command to launch Cygwin) Use NTEmacs and Cygwin as...

How can I handle arrow keys in a Perl script under cygwin?

I am running Perl script under cygwin which takes input from <STDIN> and process the requests continuously. #!/usr/bin/perl print "Enter Input:"; while(<STDIN>) { print "Recieved Input: $_"; print "Enter Input:"; } $perl testPerl.pl Enter input:input1 Recieved input:input1 Enter input:inpt2 Reciev...

Some question about Cygwin[linux in windows] (socket,thread,other programming and shell issues)

I have some question about cygwin : Can I use Cygwin develop socket based code? Does Cygwin have read() and write() functions that work with file descriptors? Can I use Pthread library in Cygwin? Does code that compiles in Cygwin also compile in Linux without any change or with little change? Will an executable file that built by Cyg...

Cygwin gdb: Not stopping at breakpoint

I am using cygwin on windows XP. I have a C++ project using makefile. But I am getting a segmentation fault. But gdb is not stopping at breakpoints. I have -g option enabled in makefiles. Gdb shows me the line where the fault is generated. But if I run after inserting breakpoint at any point before the fault line, gdb does not stops. It...

Issues using perforce command line under cygwin

So, virtually cannot use the the perforce command line for anything other than syncing. My workspace root is mapped to C:\ Here's a line of my client spec: //claims1.0/main/... //cthiel/code/claims1.0/main/... Any time I fire up cygwin and attempt to work with any files in my depot (such as p4 edit ), I get an error along the lines of...

IPP linker errors on cygwin

I've built a program that uses mkl and ipp that runs on mac and linux. I'm now building that program for Windows using cygwin and gcc, and can't get it to link. The errors I'm getting are: Warning: .drectve -defaultlib:"uuid.lib" ' unrecognized ../../../bin/libMath.a(VectorUtility.cxx.o):VectorUtility.cxx:(.text+0x95): undefi...

What file explorer can I use in Cygwin with UNIX like paths?

I'm fed up with using Windows Explorer as my file browser as I use Cygwin bash as my primary command line environment. Windows Explorer shows the full path in the address bar. Usually, I copy that, pasting it to the cygwin command prompt as in cygpath "" I then copy paste the output of cygpath so I can cd to it. I've also set up c...

Cygwin gcc is adding an underbar "_" prefix to my symbols. Where can I find documentation on this behavior?

Hi - I am trying to compile a gcc project on cygwin for the first time. The build is failing, because an underbar is being prefixed to all symbols. This is causing a symbol mismatch to the GLIB library (installed via CYGWIN package management system) which does not have the leading underbar. Is this tendancy to place a leading underb...

How can I get ActivePerl to play nicely with cygwin's screen?

I would like to use cygwin tools (screen) for development and invoking ActiveState Perl debugger from cygwin environment throws the following error. bash-3.2$ perl -d test.pl The system cannot find the path specified. Unable to get Terminal Size. The Win32 GetConsoleScreenBufferInfo call didn't work. The COLUMNS and LINES environment va...