cygwin

How to hide Cygwin Python console window in Windows?

How to hide Cygwin Python console window in Windows? Neither pythonw, nor renaming to *.pyw does not seem to apply here, since Cygwin is a different build from regular Windows CPython build. ...

grep a rar in cygwin

Hi, I want to do grep texts files inside a rar without extracting the rar file to disk, I tried a couple of combinations with pipes however it didnt work i tried for example unrar e myrar.rar | grep mysearchedline however it actually opened it to disk, I don't want to open it to disk, I don't have enough space for it to be opened (...

Merge two files using cygwin tools

I have one tab separated file (file1.txt) with two columns and one file (file2.txt) with a long string of text. I want to replace specific characters in file2 with the column values in file1. An example: file1.txt text1 text11 text2 text22 text3 text33 file2.txt I want to insert text here:$1 and the other text here: $2 The desire...

How do I install every libs in Devel group of Cygwin?

Is there a way to install every bin in a group of softwares (like devel)? Thank you. ...

how can i use COM & USB ports within cygwin

hi, i want to send/receive data from my arduino board with a python script. I would like to do it using python and its pySerial module which seems to fit my needs. So i installed python and pySerial within cygwin (windows XP behind)) the python script is rather straight forward : $ cat example.py #print "testing my COM26 port using p...

Android NDK keeps looking for "g/David/..."

I installed the latest version of the Android NDK (r4) on Windows, plus a fresh installation of cygwin with the required packages, latest Android SDK, Eclipse + Android plugins. Whenever I try to build any of the JNI code from cygwin (Be it the samples from the NDK, or a custom project), I'm getting: $ make APP=demo Android NDK: Buildi...

Git is failing to push in puttycyg because of SSH error

I've been using puttycyg as a Cygwin terminal for my rails development. I've set up a git repository on a project management website and now I want to push my code to it with the following command: git push origin master I'm getting the following error: error: cannot run ssh: No such file or directory fatal: unable to fork I know ...

Pdflatex for windows

Hi Does anyone know how to convert .tex files to .pdf in windows? I tried cygwin but it said the command "pdflatex" was not recognised Thanks Philip ...

How to get java to recognize symbolic links under cygwin

Here's a very simple java program to print the first line of a file: import java.io.* public class test { public static void main(String[] args) throws IOException { System.out.print(new BufferedReader(new FileReader(args[0])).readLine()); } } When I run this program under cygwin and pass it the name of a symbolic link, it pri...

Selectively search and replace certain lines using a regular expression

I have a file containing a lot of SQL statements, such as: CREATE TABLE "USER" ( "ID" INTEGER PRIMARY KEY, "NAME" CHARACTER VARYING(50) NOT NULL, "AGE" INTEGER NOT NULL ); COPY "USER" (id, name, age) FROM stdin; 1 Skywalker 19 2 Kenobi 57 I want the column names in the COPY statements to be uppercased and quote...

How to define a logout script for the Cygwin/X X Server

Is there a way to define a logout script for the Cygwin/X X Server? I'm looking for something like .bash_logout, but only run when the Cygwin/X X Server shuts down. I'm using .startxwinrc to start programs when the X server starts, but I haven't found something similar for when it shuts down. Any ideas? ...

shell script filter du and find by a string inside a file in a subfolder

I have the following command that I run on cygwin: find /cygdrive/d/tmp/* -maxdepth 0 -mtime -150 -type d | xargs du --max-depth=0 > foldersizesreport.csv I intended to do the following with this command: for each folder under /d/tmp/ that was modified in last 150 days, check its total size including files within it and ...

Gui in C on windows cygwin

Im trying to make a script that can generate a kind of chat client in cygwin on windows but i dont have a clue how to start, i saw something like gtk+ but how do i get that inside of cygwin, and what have i to do after that? ...

GTAGS not found error

I'm trying to use gtags to provide extra info to my semantic installation. I successfully generate the GTAGS file (and other support files). When I try the command 'gtags -pvr', I get this output, which seems right: checking Y://GTAGS GTAGS found at 'Y://GTAGS' Y:/ Now if I run global to try and find a tag that I know exists: globa...

.exe generated in cygwin 1.7 is not running on cygwin 1.52

Hi, A year back i have developed a small script in perl for a customer and developed its .exe using pp . we delivered .exe file along with basic cygwin(1.52) install files to run that .exe to customer. Now we got an enhancement in the script .we lost all dev environment for cygwin .Again we installed fresh cygwin with 1.7 version ,code...

If program crashes from within cygwin, the post mortem debugger does not trigger

Running a (seg)faulty native windows binary from within a cygwin shell leads to restart the binary for several times. Since I want to analyze the bug I activated windbg as the post mortem debugger (yes, as administrator), but somehow cygwin interferes and windbg does not get triggered. OS: 64bit Windows7 (happened on WindowsXP as well)...

running gcc in cygwin

Hello i have instlled cygwin in my system.But when i try to use gcc command it is saying bash: gcc: command not found can any one please provide me the solution please. ...

why cygwin cron cannot find a file when cygwin ls can?

I got a cron job scheduled by using cygrunsrv and vixie's cron for cygwin. The job is a shell script that copies files from one directory to another and renames them. The script is in /home/martin/my/script/copy_files.sh. And the permission for the path is: drwxrwxrwt+ 1 martin root 0 2010-06-02 17:36 home drwxr-xr-x+ 1 martin...

Cygwin GCC + WinXP cmd.exe does nothing

My basic problem is that if I run GCC from the windows command line (cmd.exe in Windows XP) and it does nothing: no .o files are created, no error messages, nothing. It will only throw an error message if I use DOS-style paths, but nothing else. When I run from the Cygwin shell then it will throws error messages as appropriate for the ...

Using Eclipse CDT under Windows with Cygwin

I am trying to use Eclipse CDT with Cygwin, but I have problems with the debugger. I have done the following: - installed Eclipse CDT - installed Cygwin with gcc, g++ make and gdb - added c:\cygwin\bin to PATH - created a new Hello World application in Eclipse Compiling went well from Eclipse. The first problem was that I had to set the...