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
0
votes
0answers
15 views

screen doesn't work in MobaXTerm but works in Cygwin

I have Cygwin installed. MobaXTerm, which it's integrated with Cygwin, in Cygwin native screen works just fine. But in MobaXTerm I have the same problem as in this question: GNU screen doesn't work ...
12
votes
7answers
30k 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 ...
-1
votes
1answer
38 views

get full path to shared directory

I have done following #!/bin/bash PROJDIR="//$HOST/projects" cd $PROJDIR newscript exit 0 Purpose of the script is to enter in shared folder and trigger another script within it, but the script ...
0
votes
1answer
60 views

Why can I not change window title with mintty/wsl

I started mintty of cygwin, and run following commands : ~$ # here, we are in cygwin/bash ~$ printf "\e]0;cygwin\7" ~$ # Now I see "cygwin" on mintty's title ~$ wsl ~$ # now, we are in wsl/bash/...
0
votes
0answers
30 views

rsync exclude folder but include some files in the folder

I want to backup my Windows home directory using cygwin: rsync.exe -vrptlH --delete --exclude=AppData "/cygdrive/C/Users/user1/" "/cygdrive/D/backup/" As you can see I excluded the AppData directory....
22
votes
4answers
192k 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@$...
0
votes
2answers
2k 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 ...
4
votes
1answer
121 views

Why the codes generated by [UP] key changed after ssh session

I'm in a mintty window of a cygwin environment. When I typed ⎈ Ctrl+V then ↑ key I got : ^[[A Then I ssh into Raspberry Pi, and exit immediately. Now I type ⎈ Ctrl+V ...
2
votes
1answer
3k views

Running sshd in cygwin: “/var/empty must be owned by root…”

I installed OpenSSH on my Windows 7 system so I could tunnel my VNC into it from my Arch machine. However, when I run /usr/sbin/sshd -D on the W7 machine, I get the error: /var/empty must be owned by ...
38
votes
4answers
27k views

How do I get rid of Cygwin's /cygdrive prefix in all paths?

I'm switching to Cygwin from the bash shell that ships with Git for Windows, and encountering a strange problem. Someone thought it would be a good idea to add /cygdrive/ to all paths, while I think ...
0
votes
1answer
31 views

How to prevent ss ouput with empty lines?

Moving from netstat to iproute2 ss I noticed that the output from ss tends to spill over into empty "new lines" when connecting via SSH from a cygwin terminal. e.g.: user@host:~ $ ss -4t State ...
0
votes
1answer
959 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 ...
4
votes
1answer
1k views

Cannot login or ssh to non-admin Cygwin user this month but could last month and still can for other non-admin user

I've read what feels like almost all the Google links on variation of this issue but none of them seem to apply and this is just baffling me. In addition to my many Linux machines, I have a Windows ...
0
votes
0answers
66 views

Problems Installing XCRYSDEN in CYGWIN

I am trying to install XCrySDen on my computer (Windows) and I am using cygwin for this. I am following the instructions perfectly: > $ tar xvf xcrysden-1.5.53.tar.gz $ cd xcrysden-1.5.53/ $ cp ...
1
vote
1answer
1k views

File not found (cygwin on Windows)

Windows 7 TeX Live 2014 I am trying to install Minion Pro and Myriad Pro for the use with pdflatex. When I try to run the script in cygwin via name@pc-name /cygdrive/d/LaTeX/FontPro-master-Build01 $ ...
0
votes
1answer
79 views

How to write script in awk that tells average length of fields in each record, without counting whitespaces?

So I need to write an awk script file that finds and prints the average field length of each record in a text document. The text document is this: The quick brown fox jumped over the lazy dog's ...
0
votes
1answer
32 views

Where is the Unix script command in Cygwin?

Iirc, the Unix script command used to be in cygwin. Does anyone know what happened to it or where it is?
0
votes
0answers
83 views

chmod not working in minGW64 but working Cygwin?

I need to do some file permission changes on win10, while I can run this command under cygwin but not in git bash minGW64, can someone help to explain why? The result as from the cygwin terminal: $ ...
0
votes
0answers
17 views

How is it possible to call CwRsync.exe via a Bash Script with variables and arguments?

This is the commandline currently used to call Rsync that's part of Cygwin 64 install. rsync -aqHPR $CygSrcRoot/./$FolA1 $CygSrcRoot/./iMazing.Versions/Versions/$FolA1 $CygDstRoot/$DstCountFol --...
0
votes
0answers
9 views

cygwin xhost not working anymore

On my local Windows 10 PC I start cygwin64 and enter: #!/bin/bash set -x export DISPLAY=localhost:0.0 sleep 5 startxwin -- -listen tcp >/dev/null 2>&1 & sleep 10 then as a last step I ...
1
vote
0answers
36 views

Assigning array values while running a loop to a variable dynamically

The values present in indexArray are: 1 4 3 2 Below is the code snippet(This is not the complete code): while read -r line;do position=${indexArray[$counter]} # No value is assigned to "position" ...
2
votes
0answers
75 views

Cygwin puts space after every `fi`

Cygwin inserts a space everywhere after a combination of letters "fi". It is only visually so, if you copy the text, this space disappears. And here's the text I copied: # pidfile = /var/run/...
1
vote
1answer
47 views

Select a particular column greater than certain condition and select grep word that mentioned in the file

I have a files FB_Dataset.csv simply contains 21 columns, whereas FB_Dataset.csv is a comma delimited file. The general scheme of FB_Dataset.csv is posted below. I need to extract the word 'Trump' (...
1
vote
1answer
1k views

glib errors on cygwin

I want to compile and install geany text editor in Windows 7 by using cygwin. I follow the usual way to compile and install C source: ./configure make make install the configure script was ...
2
votes
0answers
97 views

rsync failed: Permission denied (13) cygwin

I have mounted my destination server on my windows machine on Y: drive. I created a folder on the destination folder and when I open cygwin and run my rsync command to move data from my machine to the ...
4
votes
3answers
5k views

cygwin and pdftk

I have Cygwin install 64-bit version and have installed apt-cyg; using this, I have installed openssh and vim just fine, but I am not able to install pdftk. Does it have some other name? Or is there ...
4
votes
2answers
279 views

bash/cygwin broken after installing rtool?

Usually I can solve problems on my own (and Google). But recently I am baffled by this strange hiccup. Background: I use a chain of scripts for file-processing (in Windows, under Cygwin. Scripts ...
0
votes
1answer
61 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/ ...
1
vote
0answers
43 views

taskwarrior - limit calendar month output

I am working on writing a tmux script to create a fun tmux environment in cygwin. When I type 'task calendar' the output appears to look fine, but when I run the same command through my tmux script, ...
0
votes
0answers
26 views

Unable to receive trap on snmptrapd

Unable to receive traps in snmptrapd (from NET-SNMP) running on Cygwin. When I enable the debugger, it has such messages: I have the snmptrapd.conf as below: ignoreAuthFailure yes authCommunity log ...
3
votes
2answers
1k views

cygwin, tail -F and rapidly filling/rotatinglogs

I'm using cygwin tail to follow busy java web application logs, on a windows server, generating roughly 16Gb worth of logs a day. I"m constrained to 10MB log sizes, so the files roll very often. ...
0
votes
0answers
33 views

Tilde expansion keeps changing in xterm, $HOME seems to be OK

My cygwin terminals have been screwing up tilde(~) vs $HOME when I restart them after (yet another) Windows 10 reboot. It seems to replace characters in the home directory with some unicode crap. ...
2
votes
3answers
335 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 ...
0
votes
2answers
68 views

Specifically lower case email-addresses only

Example (random) text: StackOverflow@icloud.com:Portuguesa-Span103 StackOverflow@gmail.com-Snip1031 Stackoverflow@icloud.com:Sanchismo103 Desired output: stackoverflow@icloud.com:Portuguesa-Span103 ...
17
votes
3answers
6k views

How can I set up Cygwin to automatically update and download without the GUI?

How can I set up Cygwin to automatically update itself? How can I get Cygwin to download a package without having to go via the GUI thing?
0
votes
0answers
182 views

GNU screen doesn't work in Cygwin — directory must have mode 700

I installed Cygwin on Windows 10 and screen fails with $ screen Directory '/tmp/uscreens' must have mode 777. I couldn't change the permissions for whatever reason $ chmod -R 777 /tmp $ ls -hal /...
1
vote
2answers
568 views

Sed could not edit : not a regular file

I have tried various solutions mentioned in SO to solve this problem i am facing. I want to find all files recursively and change certain text. This is the command I am using in cygwin in windows ...
0
votes
0answers
15 views

Cygwin Bash Escape Slash at First Place [duplicate]

Having this script.sh in Cygwin # !/bin/sh x="abc" echo "$x/" And running bash.exe script.sh, outputs: /bc instead of abc/ What is happening here?
6
votes
3answers
13k 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 ...
0
votes
0answers
34 views

xfce on cygwin X not working!

Good evening, I have a big problem, I'm fighting desperately with my PC to launch a session but it spits and my CPU goes up to 100% When I click on exit, the software tells me that I have 13 ...
2
votes
1answer
920 views

Using sed within a makefile

I want to modify the cygwin path to the windows path from within a makefile. For that purpose, I am using CURDIR := `pwd` WINDIR := $(shell echo $(CURDIR) | sed -e "s/\/cygdrive\/\(.\)/\1:/" | sed -e ...
0
votes
1answer
63 views

How to remove the title bar in mintty cygwin

How do i remove the title bar in the cygwin mintty terminal window ? there is no option in the options -> window configuration
0
votes
0answers
50 views

How to switch user in the server by su without password through shell script?

I am using cygwin to run my expect command for login into server. Once login i have to switch the user by su command writing password in the shell script which does not prompt for password and ...
7
votes
3answers
23k 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
1answer
3k views

configure: error: cannot guess build type; you must specify one [closed]

I am trying to compile an application called "iPerf" in my windows environment using cygwin. When I try to do ./configure with my iPerf installation it throws following error: configure: error: ...
0
votes
4answers
2k 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 ...
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). ...
1
vote
2answers
384 views

find command throws errors when inside function

I can run the following command in bash without any errors: $ find /d/Code/Web/Development/Source/ \( -name '*.cs' -o -name '*.cshtml' \) -exec grep -IH UserProfileModel {} \; I wrote a function in ....
0
votes
1answer
179 views

Cygwin installation message [closed]

I want to ask about this error? The error states : This is the first time you've installed Cygwin 1.7.x. Please be advised that this is a major release. If you have not done so already, please ...
7
votes
3answers
13k views

Alternative to `pkill` or `pgrep -f` on cygwin?

Suppose I have started my process like: java -DSOME_STRING -jar foo.jar Then on linux, I can use the following to find or kill this process: pgrep -f SOME_STRING pkill -f SOME_STRING However this ...

1 2 3 4 5 7