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
19 views

Slowness in cygwin

I have cygwin and wsl installed on Windows 10. Commands in cygwin run much slower than in wsl : ~$ uname; time date CYGWIN_NT-10.0 Sat Nov 21 12:12:37 2020 real 0m0.825s user 0m0.203s sys ...
0
votes
1answer
24 views

How to upgrade lighttpd on Windows 10 using Cygwin/Mingw

There is this project I took from a client who my friend who owes Gym. They have a POS security scan every month because they use the credit card machine. if they don't pass the security scan, they ...
1
vote
0answers
24 views

Show GNU screen session name as Cygwin window title

I use Cygwin with a xterm terminal to ssh into a server that gives me a csh prompt. I then do screen -S new_session. The window title of Cygwin then shows "[screen 0: csh]", which suggests ...
0
votes
1answer
29 views

develop of a bash backup.sh for rsync between linux and cygwin

i work on a debian 10 server with ispconfig 3 the backups files is in /var/backup/web*/*"Today"*. (exemple : /var/backup/web30/db_c1gifts_2020-07-25_00-07.sql.gz i install cygwin on my ...
1
vote
2answers
41 views

Cygwin: get a path's stored capitalization

Cygwin is case-insensitive in the manner of Windows, e. g.: $ touch ABC; rstr=$(openssl rand -base64 12); echo $rstr; echo $rstr > AbC; cat abc dGRMOHqqoy0/nc96 dGRMOHqqoy0/nc96 $ ls | grep -i abc ...
0
votes
0answers
21 views

Intermittent operation in perl loops when using non-login shell in Cygwin

I'm running perl inside cygwin under Windows (both 8 and 10). File loop.pl repeatedly calls another perl script worker.pl (simplified to make the problem clearer): loop.pl: for my $i (1..2500) { ...
0
votes
1answer
25 views

Sorting file based on “file” output into folders

I am having millions of files without extension and I want to sort them into various folders. I am able to identify the files by "file" but then I end with lot of different types which I can ...
0
votes
0answers
23 views

How do I turn off line wrap in Cygwin terminal? [duplicate]

I tried: export PAGER='less -S' Did no work - wide tables are still broken on each line. $ tput rmam Did not work $ alias wrapoff="less -S" Did not work $ setterm --wordwrap off Did not ...
0
votes
1answer
36 views

Why does “/dev/dsp” output with a 'Pulse-density modulation' (sort of)?

My understanding is that the input to /dev/dsp should be an 8-bit unsigned PCM signal/character stream. yet $ cat a.c #include <stdio.h> #include <math.h> int main(){ uint32_t t; ...
0
votes
0answers
47 views

Unable to install node via nvm in Cygwin

When I try to use the "nvm install" command, it seems to run fine but at the very end I get the following long error message: Warning: unrecognized setting VCCLCompilerTool/...
1
vote
0answers
20 views

New install of cygwin requires manual login on each restart

I've recently had to reinstall Cygwin on to a new drive, and I tried to copy my .bash_profile over as well. But for some reason I can't use any of my old aliases in Cygwin unless I use "bash --login" ...
1
vote
2answers
83 views

Open documents from Windows with Cygwin programs directly

Is it possible to open a document by using the Windows 10's "open with" feature with a program that comes with Cygwin, e.g. Zathura? This one with a Cygwin program. First attempt: try to simply use ...
0
votes
1answer
158 views

Schedule task with cygwin script

In fact I have installed cygwin on windows server 2016, and my scripts run perfectly inside bash terminal. Now I want to schedule my scripts to run per day using windows task scheduler. So I have ...
0
votes
1answer
19 views

Extract all matches between a word and nth character match after that word

I have a file where I want to extract all matches. Each match starts with a word, and ends with the nth time a character occurs after each match, in this case 2nd. Include in the output the word and ...
1
vote
0answers
150 views

Inspect/browse gzipped dd disk image from command line without decompressing and mounting?

I did a disk image, as per How to dd a remote disk using SSH on local machine and save to a local disk : ssh user@remote "dd if=/dev/sda | gzip -1 -" | dd of=image.gz` Now, I would just like to ...
1
vote
1answer
38 views

Reading .xml files and writing out the information in a .txt file

I want to download river runoff (.xml) files from a ChartServer online and create a .txt file with the information by running a .sh script. But I'm having difficulty in getting the data out in the ...
1
vote
2answers
213 views

CTRL-O causing terminal to freeze

I am using cygwin on Windows 10, to ssh to my servers, and recently I noticed that whenever I pressed CTRL+o the entire session/cygwin window would freeze up. I tested it out on putty as well and same ...
1
vote
1answer
48 views

sed substitution command behaving weird

I am attempting to manipulate a file with lines like: 331436218071156,XXXXXXXXXXXXXXX6269,12/28/2018,0 Using this sed command: sed -e '/XXXXXXXXX/ s/^\([0-9]*\),XX*[0-9]*,\([^,]*\),\(.*\)$/\2,\1,\3,...
0
votes
0answers
29 views

screen doesn't work in MobaXTerm but works in Cygwin

I have Cygwin installed. MobaXTerm, which has it's own (separate) custom version of cygwin, in Cygwin native screen works just fine. But in MobaXTerm I have the same problem as in this question: GNU ...
0
votes
1answer
92 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
160 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/...
3
votes
3answers
159 views

rsync exclude AppData but include Firefox bookmarks?

I want to backup my Windows home directory using cygwin and rsync: rsync.exe -vrt --delete --exclude=AppData "/cygdrive/C/Users/user1/" "/cygdrive/D/backup/" As you can see I ...
4
votes
1answer
129 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 ...
0
votes
1answer
42 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
468 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 ...
0
votes
1answer
156 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
35 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
1answer
464 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
37 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 --...
1
vote
0answers
49 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
123 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
106 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' (...
2
votes
0answers
407 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 ...
0
votes
1answer
95 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/ ...
2
votes
0answers
73 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
2answers
144 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 ...
1
vote
1answer
365 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
2k 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
1answer
124 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
2
votes
1answer
2k 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 ...
2
votes
1answer
467 views

Is “/bin/[.exe” a legitimate file? [Cygwin, Windows 10] [duplicate]

I can not find anything about this, is it a known file? I am using a CYGWIN based terminal on windows 10 Here are their locations and the commands I used. $ find -name [* ./bin/[.exe ./usr/bin/[.exe ...
0
votes
2answers
496 views

Echo Results of a Variable in Sed Replacement

I have a file called LoginExcInternal.txt which has data that looks like the following: Name1 OpenFin/111.111.111.111 Name2 OpenFin/111.111.111.112 Name3 Chrome/111.111.111.111 These two ...
0
votes
0answers
89 views

How do I stop my terminal from clearing the command when I hit enter

I am using mintty under Cygwin on Windows 10. I don't know why this started happening but suddenly everytime I type a command and hit enter, the command and all the scrollback text is cleared. I don'...
0
votes
2answers
447 views

Add line breaks to Grep Commands

How can I add a few line breaks? I want it to show OpenFin category, have a line break, Chrome category, another line break, then memoryInfo. Here is what I have so far: cat LoginExInternal.txt | ...
1
vote
1answer
1k views

/bin/crontab and /usr/sbin/cron in cygwin - what is the difference?

I have just installed Cygwin on my Win Server 2008. I have a bash backup script (to backup some user files to an external harddrive) that I want to run on the machine, under crontab, every night. I ...
0
votes
1answer
59 views

Grepping email file against email file

I have 1 file of emaiils (4.6m lines) I have another file of emails (100m lines). I want to see how many of these 4.6m lines occur in the file which has 100m lines. I've researched already, and ...
7
votes
1answer
609 views

Shells with the ability to treat `\r` as a whitespace character

As a personal project, I'm trying to write a script to clean up some of the extraneous files that ship with Windows 10 that runs under Cygwin. I'd like the script to be copy and paste-able, which ...
2
votes
1answer
1k views

Rsync - write permission denied

I use rsync on Windows (Cygwin), where I move files from shared folder (from another Windows instance) to NFS storage. I have mapped the shared folder to one drive and mounted the NFS folder to ...
-1
votes
2answers
163 views

How to select a line in Cygwin

I am unable to select a line in cygwin, atleast by using the traditional windows method of clicking and dragging the mouse curser across the line that i would like to select. Is there a specific ...
1
vote
1answer
502 views

Tmux binding error `returned 127` in cygwin

I want to use a clipboard manager in tmux. It is the CopyQ, but it does not matter, I guess. In ~/.tmux.conf I set following binding: set-window-option -g mode-keys vi bind C-y run 'out=`tmux save-...

1
2 3 4 5
7