cygwin

Unix commands from C#

Is there an implementation of a Unix shell and commands as a .Net assembly. This could be a wrapper around cygwin, or a standalone built from public domain source. The kind of commands I'd really like to be able to use are wc, tar, cpio, ps, kill, cat, at ... how cool would it be to do this (Pseudo code) usng cygwin ..... Shell mySh...

What has happened to startx on Cygwin?

I just had my desktop computer replaced. Both my previous computer and this one have Windows XP. In order to work with the many Linux servers we have, I installed Cygwin along with its xterm package. However, I cannot run startx to start the X-window server as I did with my previous computer. I've been looking online to see why start...

escaping 'run' command line options in cygwin

Hey everyone, I'm having issues passing arguments through "run" to the windows side To demonstrate, it looks something like this: run C:\foo.exe /BUILD The '/BUILD' parameter is never passed to the executable. Anyone know of a way to get around this? Thanks! ...

Which of the cygwin mirror sites is complete?

I've noticed gross inconsistencies in the cygwin mirror sites. The packages that you get installed by default depend on which mirror you select. Even worse, some sites are missing important packages all together so you can't improve on the default installation. My default installation of cygwin from sourceware.mirrors.tds.net did not ...

cygwin interop questions

A quick couple of Cygwin questions that I am not quite sure how to search in order to find the answer myself: Question: When I run which perl on my cygwin installation, it doesn't point to my pre-installed windows installation, it points to the cygwin one. How can i change it so it points to my windows based perl installation: /cygd...

script to save file as unicode

Do you know any way that I could programmatically or via scrirpt transform a set of text files saved in ansi character encoding, to unicode encoding? I would like to do the same as I do when I open the file with notepad and choose to save it as an unicode file. ...

Has anyone installed MySQLDB for Python on Cygwin?

Hi, I'm trying to install MySQLDB for python on Cygwin. Unfortunately, when I run python setup.py build, I get the following error: $ python setup.py build /bin/sh: /usr/local/bin/mysql_config: No such file or directory Traceback (most recent call last): File "setup.py", line 16, in <module> metadata, options = get_config() Fil...

g++ issue with Magick++ and cygwin

When I try to compile a simple c++ file using Magick++ and cygwin, I keep getting this result: $ g++ -o imageTest imageTest.cpp `GraphicsMagick++-config --cppflags --cxxflags --ldflags --libs` g++: unrecognized option `-no-undefined' /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -ldpstk collect2:...

How to terminate script's process tree in Cygwin bash from bash script

I have a Cygwin bash script that I need to watch and terminate under certain conditions - specifically, after a certain file has been created. I'm having difficulty figuring out how exactly to terminate the script with the same level of completeness that Ctrl+C does, however. Here's a simple script (called test1) that does little more t...

How do I limit the running time of a BASH script.

I have a long running BASH script that I am running under CYGWIN on Windows. I would like to limit the script to run for 30 seconds, and automatically terminate if it exceeds this limit. Ideally, I'd like to be able to do this to any command. For example: sh-3.2$ limittime -t 30 'myscript.sh' or sh-3.2$ limittime -t 30 'grep func *...

C program compiled with cygwin in Windows works, segmentation fault under Linux. Is cygwin GCC 'bad'?

For my Programming 102 class we are asked to deliver C code that compiles and runs under Linux. I don't have enough spare space on my hard drive to install Linux alongside Windows, and so I use cygwin to compile my programs. The most recent program I had to give in compiles and runs fine under cygwin. It compiles fine under Linux, but h...

How to integrate Django and Cygwin?

I have a Windows box with cygwin, python and django installed. Now I want to run django-admin, but when I do I get the error: $ django-admin.py c:\Python26\python.exe: can't open file '/usr/bin/django-admin.py': [Errno 2] No such file or directory ...

How to get Eclipse to give Cygwin's GDB a posix path to the executable?

I'm using Eclipse on Windows to program C++ using Cygwin's toolchain. I would like to use it for debugging as well, but my problem is the following: The executable to debug is in a sub-folder of the workspace (pretty standard, I guess) but not of the actual Project from which the executable is built. Eclipse and GDB have different path...

Make/Execvp Error in Cygwin:

The following error occurs in make, while trying to do incremental builds: make[2]: execvp: C:/path/to/compiler.exe: Message too long I suspect my problem here is the argument length for execvp. Any idea what that limit is? How would one go about changing that? Some curious extra information: the same command succeeds when p...

Apache Nutch on Windows

Has anyone tryed to install Nutch on Windows? I'm following this installation guide: http://zillionics.com/resources/articles/NutchGuideForDummies.htm After a few bumps I'm stuck trying to run the crawler. It gives me this error: bin/nutch: line 15: syntax error near unexpected token '$'in\r'' 'in/nutch: line 15: 'case "'uname'" in A...

How can I configure Mercurial to use WinMerge for merges, under cygwin?

When Mercurial is running under cygwin, it's a bit tricky to figure out how to spawn WinMerge to resolve merge conflicts. How can I do this? ...

Cygwin: Assembly language development?

Firstly I'm not sure if this should be part of the thread I started yesterday on assembly and the stack but I think the question I'm asking here is quite different. I'm been trying to understand what exactly Cygwin is, via Wikipedia and Google, I'm not having much luck. I've just begun assembly programming on Linux using the gcc gas ass...

How do I pass this path to a bash function?

I've been having trouble moving to directories with spaces in the name, but it I just figured it was a problem with Cygwin and worked around it. Then I found that I could create symbolic links to those directories which made me maybe think it wasn't Cygwin. Then I remembered I created an alias for cd that would list the directory conten...

In Cygwin how do I change the font color?

I want to start using Cygwin, but I am not pleased with the font color and would like to change it to light green with a black background. (I tried googling to no avail BTW) ...

How can I create a portable perl when I can't install modules on the target host?

I need to run Perl applications I develop on cygwin Windows on HP unix / Solaris hosts. I am not a superuser on the unix machines and I can't touch the default Perl module location nor can I install modules to the default Perl module location. Also the unix installation lacks most basic modules and I can't change that. For example, I ha...