Linux-like environment for Windows making it possible to port software running on POSIX systems (such as Linux, BSD, and Unix systems) to Windows.

learn more… | top users | synonyms

0
votes
0answers
38 views

why does cygwin and putty write a tilde on its own? [closed]

I would like to know how can I stop cygwin and putty writing a tilde on its own. When I use vim with these programs on windows 7 I get this annoying tilde written.
0
votes
0answers
58 views

Does grep “-n” option change the number of the lines depending on the regex search? [closed]

I've been working with grep on cygwin and I need the line number of a pattern; so if I write: grep -P -a -nh -i -- "ELEVATION|(\d+(\s+)?(FEET|FEETS|FT|METER|METERS))" * one of the outputs is this: ...
0
votes
0answers
12 views

Send-keys across tmux panes in vim in Cygwin is painfully slow

I am using vimux or vim-tbone to send code to an interpreter in another pane. It works fine with any shell, but I can't get it to work properly in windows. I can't have a VM, so I use cygwin at work ...
1
vote
0answers
22 views

Following the move of the source code from the AT&T repo to Github, has anyone built ksh93, AST, or UWIN from it, on a Cygwin platform? [closed]

Following the move of the source code from the AT&T repo to Github, has anyone built ksh93, AST, or UWIN from it, on a Cygwin platform? I refer to another thread on this forum: Is the shell ...
0
votes
1answer
31 views

Cygwin - tail stops reading input pipe after first write

I have the following script to run my application in Ubuntu with redirecting its input (where $in is named pipe which is used to send text lines to stdin). tail -f "$in" | "$app_bin" $app_args & ...
1
vote
1answer
38 views

How to organize files in Linux/Unix shell?

I would like to try to organize my documents, and I was told that I can do this using the linux/unix cygwin terminal. I searched for the command in google but all I ever did find was organizing the ...
0
votes
1answer
31 views

Showing color in log output using tail command when using Cygwin?

I have a debian install that runs an application server. I ssh into this debian install from a Windows computer using cygwin and with the application server running I use tail -f to monitor the log ...
1
vote
0answers
31 views

Xrandr doesn't scale screen under Cygwin/X and Xming

The preamble: I have a very specific remote X client, that needs fixed resolution. 1280x1024, to say. And my notebook has 1440x900. And Windows aboard. So, the idea is to scale the output of the ...
0
votes
0answers
23 views

find and copy files change the modified date to 1980-1-1

I use command to find and copy files in cygwin in windows . My command is find -name '*.docx' -exec cp -p -t /word {} + however , when the files is copied to destination folder, I can see the ...
0
votes
0answers
27 views

Trying to run hadoop 2.7.1; localhost refused to connect

I'm trying to use hadoop (2.7.1) for the first time using cygwin on win 8. I followed the configuration and i think every thing is well. However when i issue sbin/start-all.sh, i get the following ...
3
votes
1answer
57 views

Remove files with match only from some subdirectories

I have a directory with several subdirectories; in each of these, I have some files. I want to perform a grep only for some subdirectories to find those files that match the query and remove them; ...
0
votes
2answers
61 views

Running JAVA in Cygwin through bash script

I've been encountering a problem with cygwin where I cannot run a jar file with an error that the file cannot be found. If it were easier i would "translate" the java source in bash, but ...
0
votes
0answers
17 views

How to launch a command on external machine on Windows Cygwin [duplicate]

Suppose, we have 2 local machines: Linux and Windows with Cygwin. We have an external server, that exists in ~/.ssh/config file on both machines: Host beta HostName <server IP> User ...
2
votes
0answers
120 views

Cygwin/X DISPLAY number no longer :0?

I use Cygwin/X to ssh into a linux computer cluster using a Windows (10) pc. Yesterday I was in the middle of an ssh session using X11 forwarding. Suddenly one of the X windows open started to hang ...
0
votes
1answer
82 views

Where is the Cygwin NFS Server?

Apparently Cygwin is meant to include an NFS server component. But, having tried numerous sources from the available list (when running Cygwin's Setup.exe) I cannot find the NFS Server anywhere. Is it ...
0
votes
1answer
43 views

Cygwin - Email - New Line (Carriage Return) (How to)

Am stuck, and on something really stupid. using Cygwin on Windows 8, Quick Bash script to search server for files modified in the past 120 days: Run once a week as a Cron job, But i cannot format ...
2
votes
2answers
46 views

How to recover multiple files which has been moved into one?

I was trying to rename (mv) few of my files and ran a wrong loop resulting into renaming all the 10 files into one. Now I can see only one file whereas there should have been ten files. How do I ...
0
votes
0answers
46 views

All Cygwin packages installed but can't run GDB

I have installed all of the Cygwin packages but when I try to launch my executable file by typing this into the terminal $ gdb ./a.exe I get the following message: -bash: gdb: command not found ...
0
votes
1answer
610 views

Running Docker under Windows/cygwin environment

I'm not sure if this is the right community to ask about my problem as I'm actually trying to launch docker within cygwin environment on windows. After Docker Toolbox install I'm trying to launch ...
0
votes
0answers
51 views

cygwin ssh not working

I installed cygwin on Windows 7 and trying to test SSH to local host but getting the connection refused and stdin is not a terminal error: Here is the detailed log: $ ssh -vvv localhost ...
1
vote
1answer
18 views

How can I find .git repositories and pull'em all?

I tried. $ find . -name .git -type d -execdir git pull {}; find: The relative path ‘%ANDROID_HOME%/tools’ is included in the PATH environment variable, which is insecure in combination with the ...
1
vote
1answer
34 views

Why do different installations of sort sort punctuation differently?

I got a file with content like this: ----------- =========== -------- -=-=-=-=-=- When I sort in a linux os, it comes like this: $ sort 1.txt =========== -=-=-=-=-=- -------- ----------- ...
0
votes
1answer
62 views

Vim Powerline is only working when 2 buffers are open

I'm having some trouble with the Vim Powerline plugin. I've installed it but it is only working when I have two buffers open. Below are pictures describing the issue visually as well as my .vimrc. ...
0
votes
0answers
18 views

How to execute shell script in remote windows machine [duplicate]

I have a shell script which will be useful to download the jars from ftp and copy it in a particular location and do some deployment stuffs.. I need to run the script in remote Linux and windows ...
0
votes
0answers
65 views

Cygwin X seems to have messed up my Xming connection to my X-server

Yesterday I played around with Cygwin and ended up installing Cygwin/X on my local machine. I had a bunch of Xming shortcuts to a remote machine where I would launch applications with remote desktop. ...
0
votes
2answers
18 views

Running script in cygwin enviroment

I'm using this code: numbzip=`ls *.plt.zip | wc -l` &>/dev/null and trying to get rid of the output in the command window. No files ending on .plt.zip exist so it comes back with: ls: ...
1
vote
1answer
76 views

scons can't find glib-2.0 >= 2.32 on cygwin

I downloaded the source for rmlint and am trying to compile it on cygwin. When I run scons, it says Checking for glib-2.0 >= 2.32... Error: glib-2.0 >= 2.32 not found. In the cygwin setup ...
1
vote
2answers
188 views

cygwin and pdftk

I have spent a long time looking around and Goggling for this but I am no closer to getting this install. I have Cygwin install 64-bit version. And have installed apt-cyg and using this I have ...
1
vote
1answer
30 views

Connect Symbolic Link to program or script that returns a file

I wanted to know if I can make a symlink to a file say in a Database. This is a wild guess, but is it possible to intercept the link-follow say using a C function and then let function return the ...
6
votes
2answers
124 views

Strange environment variable !::=::\ in Cygwin

Using Cygwin, I installed Environment Modules by downloading source code, running configure, make, and make install. Every time I run a module command, I get: init.c(718):WARN:165: Cannot set TCL ...
0
votes
0answers
57 views

Please suggest a music player for cygwin under windows

I have installed cygwin on windows 7. I would like to find a music player for cygwin. However, I am not able to find any on cygwin package. Can you suggest a music player?
0
votes
0answers
100 views

profiling cannot open gcda file

I am compiling file UT_test.c and linking my file using gcc on cygwin environment using flags -fprofile-arcs -ftest-coverage. The objects and gcno are created at location ...
0
votes
2answers
35 views

AWK Using a Variable in an Equality Expression

A simplified version of my code looks like the following: declare -a DMN=(" " "200" "190" "180") NRL=3 runDHFiles() { awk 'NR>13 {if ($4==$DMN[$i]) print $1, $2, $3, $4;}' domain_all.dat >> ...
0
votes
0answers
23 views

yaffs2utils compile error in cygwin

I am trying to make yaffs2utils in cygwin and I have error below: gcc -I. -I./yaffs2 -O2 -Wall -Wshadow -Winline -Wpointer-arith -Wnested-externs -Wwrite-strings -Wstrict-prototypes ...
1
vote
1answer
56 views

Curl or Lynx: stripping Javascript possible?

I am doing corpus generation through curl or lynx of some web pages. I have written a program in bash to strip away the html code (e.g., when I do lynx -source myurl), but the problem is that some ...
0
votes
0answers
81 views

Join, file is not sorted

I have two files whose first lines are File1 Locus_1174 [six columns of numbers] locus_6396 [six columns of numbers] Locus_12135 [six columns of numbers] locus_13689 [six columns of ...
0
votes
1answer
60 views

Basic GUI application Cygwin

How do I extend the following program to display basic GUI element Button in Cygwin on Windows? #include <stdio.h> int main(int argc, char **argv) { printf("Hello, World!\n"); } And to ...
2
votes
1answer
101 views

Creating a symlink with a colon in the name on cygwin bash

I'm using bash, version 4.3.42(4)-release (i686-pc-cygwin) on cygwin. I want to create a symlink C: -> /cygdrive because a vagrant build process has that file path specified. The vagrant script has ...
2
votes
4answers
164 views

Automate Rename files from 1 to unlimited number

How to rename multiple files starting from 1 to unlimited ( to finish all files ) ? My files looks like: file.jpeg.jpg fileA.jpeg.jpg fileB.jpeg.jpg Output: 1.jpeg.jpg 2.jpeg.jpg 3.jpeg.jpg I'm ...
1
vote
2answers
151 views

How to convert my text files (each containing a username+password pair) into CSV in order to import them to KeePass via bash(cygwin)

I'd like to use Keepass (win10x64). The problem is that, I have my passwords gathered all these years like this: each username/password pair in a separate text file, having as filename the domain ...
1
vote
3answers
342 views

'Couldn't connect to display “:0.0”' error on Cygwin

I'm trying to run tclsh with tk and I get a display error: no display name and no $DISPLAY environment variable Then I try the following: export DISPLAY=:0.0 And of course it says it couldn't ...
0
votes
1answer
248 views

CygWin: MD5 sum did not match, exiting

cyg-get install lzop gave: MD5 sum did not match, exiting I tried: cyg-get update rm /setup/http%3a%2f%2fmirrors.kernel.org%2fsourceware%2fcygwin/release/lzop/lzop-1.03-1.tar.bz2 That did not ...
2
votes
1answer
554 views

Build RPM on Windows with Cygwin but install on Linux

I am trying to figure out an issue that I have with installing an RPM file on openSUSE which I build on Windows (using Cygwin/rpmbuild). When I try to install the RPM on Linux I get an error saying ...
2
votes
2answers
3k views

Cygwin on Windows: Can't open display

I am running Windows 10 on my Surface Pro 3. I installed Cygwin and also added some useful packages (gvim, nedit, emacs, vim, g++). However, when I run gvim, I get "Can't open display". The same thing ...
0
votes
1answer
198 views

sort process by cpu usage in cygwin

please help me to sort process by cpu usage in cygwin. I already tried tasklist but it shows only process by memory usage .
2
votes
1answer
82 views

Why isn't rxvt-unicode launching with perl extensions enabled by default even though I built it with '--enable-perl' and even '--enable-everything'?

I'm trying to get 'clipboard' perl extension for urxvt to work. I installed the script, it didn't work, and after some searching around I discovered that Cygwin's rxvt-unicode package is built with ...
2
votes
2answers
250 views

Cygwin using wildcard to trim all images

Unortunately, I am forced to use windows. So, I installed Cygwin to use some Linux commands. The following command works fine. It replaces an image with its trimmed version. "C:\Program ...
0
votes
4answers
384 views

How to find a string from multiple .csv files

I have multiple .csv files in a folder named HW in my desktop and I am using cygwin , I want to find a string from a specific column for example in X column ARD is the header in content value may be ...
0
votes
0answers
53 views

Weird G++/AR Compilation issue

I'm working a patch-set to compile dpkg and APT onto Cygwin. I've almost got everything working, but I'm encountering some weird behavior with ar/g++ that I can't explain. APT's stock Makefile uses ...
1
vote
2answers
37 views

How to exclude a directory when zipping files

I'm trying to exclude a certain directory when building an archive using zip. Here's what I have tried: $ zip home.zip -y -r HOME -x '/AppData' -x '/AppData*' -x '/AppData/*' -x 'AppData' -x ...