Questions tagged [cygwin]

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

Filter by
Sorted by
Tagged with
13
votes
7answers
32k views

Why am I getting “line 1: $' :\r': command not found”?

I used Cygwin on my laptop (DOS). I have a collection of scripts from my colleagues, and my own. I am not an IT person, not knowledgeable in Unix. I follow my colleagues' syntax and able to manage a ...
7
votes
2answers
621 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 ...
22
votes
10answers
64k views

Best way to use a shell with Cygwin in Windows 7 [closed]

I installed Cygwin, to be disappointed that bash by default runs within "cmd.exe". I googled around and found Console2. It's not a particularly well-designed application, as doing adjustments is ...
57
votes
4answers
17k views

Cygwin has no watch command?

I installed Cygwin on my Windows XP to use some of its commands. Now I what to check a file every 2 minutes and want to use watch for this purpose but I see that Cygwin has no such command. Is this ...
2
votes
1answer
475 views

Why does `find` not delete the files it found?

I'm trying to understand why the find command is not deleting files in one particular case. I've got the following command: find C:\\path\\to\\Pictures\\pmcctv -name cap_*.jpg -o -name cap_*.ogg -o -...
4
votes
2answers
18k views

Curl JSON encoded in UTF-8

Important note: I'm using Cygwin I retrieve JSON from a file that I alter before sending it to a server using curl. By now everything is ok except one thing, when the server receive the JSON, every ...
4
votes
3answers
5k views

Command substitution in for loop not working

I want to keep all files not ending with .bat I tried for f in $(ls | egrep -v .bat); do echo $f; done and for f in $(eval ls | egrep -v .bat); do echo $f; done But both approaches yield the ...
3
votes
4answers
4k views

Cygwin X doesn't work with DISPLAY localhost:0 on windows 10

I had Cygwin X 64 bit running fine on Windows 7. I upgraded to Windows 10 and things stopped working. So I wiped out the Cygwin and installed again from scratch. I installed Cygwin X 1.18.4 (x86_64). ...
3
votes
4answers
8k views

Trouble with read line script in Cygwin

I'm on windows 7 using Cygwin. My script and text file are located in the same directory. #!/bin/bash while read name; do echo "Name read from file - $name" done < /home/Matt/servers.txt I get ...
1
vote
1answer
240 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 =========== -=-=-=-=-=- -------- ----------- But ...
29
votes
7answers
34k views

Are cygwin vim commands different than normal vim?

I am unable to edit text files using vim in cygwin. I have to press i many times to insert text. Sometimes it works and sometimes doesn't. Whenever I move cursor up down I have to press I many times. ...
22
votes
4answers
195k views

why won't x11 display work through ssh login?

I have logged in to a remote server and am trying to display an x application(e.g. firefox). but an error message appears. the below are my attempts to open firefox Black@Black-PC ~ $ ssh -X kwagjj@$...
11
votes
3answers
14k views

A terminal emulator for CygWin?

I have: Windows 7 CygWin A development board connected to COM1 port. I need: Connect to its serial port from CygWin. If I used Linux I would run a program like picocom or minicom. Also in Windows ...
15
votes
1answer
16k views

Why is vim creating files with DOS line endings?

I have set fileformat=unix in my .vimrc, and yet if I create a file in vim (running in Cygwin) it persists in creating DOS-format files, and I have to run them through dos2unix to clean them. (I ...
18
votes
6answers
12k views

Stopping output from a program run in SSH session NOW

Problem I execute command that outputs LOTS of information through SSH. For example, I foolishly add debug information inside a loop that executes million times, or just run cat /dev/urandom for ...
2
votes
1answer
316 views

groff to PS Conversion

I am very new to UNIX, learning groff with the help of cygwin on Windows XP SP3. I have downloaded groff-binaries from here, but using cygwin, I could not able to re-produce ps files. I have used ...
4
votes
2answers
16k views

How to configure fonts on a remote X connection (XDMCP vs. ssh)?

Connecting to a remote Solaris 10 system over X11 I observe inconsistent behavior regarding the used fonts. I am connecting from a Cygwin/X system. When I connect using ssh forwarding like this $ ...
6
votes
3answers
14k views

Why is my SSH connection being closed immediately after pubkey auth succeeds?

I've two windows machine and trying to SSH using CYGWIN. It works fine when password prompted. However, when I generated the private/public pair, looks like authentication succeeded, but got the ...
5
votes
2answers
11k views

What is the difference between “.” “./” and “source”? [duplicate]

What is the difference between "." "./" and "source" ?
3
votes
2answers
4k views

Run a command at a certain time in cygwin

I am writing a bash (.sh) script for cygwin. I want to run a certain command at specific time. I tried the following: echo "test" | at 19:00 but I get the following error: The AT command has been ...
2
votes
1answer
212 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; ...
2
votes
3answers
350 views

Cannot paste a command to vim 8.0

In vim 8.0 when I try to paste a vim command from clipboard, it behaves as if vim was in insert mode: the command is pasted into the file itself instead of being executed. I'm using mintty. Mouse is ...
1
vote
3answers
5k views

How can we rename a file with semi-colon as part of the filename?

I tried to rename all file with extension "XLS;1" to "XLS" but it just didn't work. I tried the following in cygwin in windows xp and they don't work: mv *.XLS;1 *.XLS mv *.XLS\;1 *.XLS mv "*.XLS;...
0
votes
1answer
63 views

Working Syntax for Rsync Copy of a set of 2 or more Hard-linked Folder Trees while maintaining this specific archive structure?

Working Syntax for Rsync Copy of a set of 2 or more Hard-linked Folder Trees while maintaining this specific archive structure? PS: Would this be a better fit in SO or SU SE? Template of Current/ ...
0
votes
4answers
867 views

sed remove digits from end of stirng

remove digits from end of string, example input: example123 example321 example0123 expected output: example example example I tried the below which didn't work: sed 's/[0-9]\+$//' <in.txt >...
0
votes
1answer
390 views

you don't currently have permission to access this folder

I am trying to building a folder (name:components) within a build folder which contains only html files from the existing component folder using the following code. find components -iname "*.html" -...