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
1
vote
0answers
871 views

(ssconvert: 2156) dconf-WARNING **: failed to commit changes to dconf: Cannot spawn a message bus without a machine-id

I am trying to use ssconvert to convert .xlsx files to .csv formats. However, every conversion will report a warning message like: (ssconvert:2156): dconf-WARNING **: failed to commit changes to ...
5
votes
1answer
4k views

Cygwin show Windows drive name mappings to POSIX device files /dev/disk/sd*

In Linux I can use df to show me which Windows drives (like /cygdrive/c) correspond to the virtual files /dev/disk/sdd1. /dev/sdf1 932G 932G 0 100% /media/sarnobat/c /dev/sde1 ...
0
votes
2answers
658 views

Why is /dev/stderr invalid when redirecting to a pipe in cygwin?

I recently stumbled over a surprising issue with an invalid /dev/stderr on an up-to-date cygwin which is also present on a well-matured Debian installation. (Edit: Opposed to what I originally thought,...
2
votes
1answer
370 views

mintty does not find my theme directory

If I understand the tty manpage correctly, theme files are by default looked up in a subdirectory named themes under the config directory, and in the absence of a --config option, one default location ...
2
votes
2answers
3k views

execute windows program with parameters from cygwin

I want to execute a windows program in cygwin console. I have tried various forms but I don't find the correct syntax. $ cmd /C "C:\Program Files\sqldeveloper\sqldeveloper\bin\sdcli.exe format ...
3
votes
1answer
655 views

bash string concatenation failed

Important note: I'm using Cygwin to run this script. I got a json string by executing result=$(jq -c ".docs[$docIndex] + { \"_rev\": \"rev\" }"<<<"$fileContent") Here is the JSON I get: {"...
-1
votes
2answers
379 views

How can i match a file and get its path and date in cygwin

ls -R "all.xml" //host1//dw/fold i am trying to use this command to find all.xml file in the fold directory and its subsequent directories but i am getting all the files present in that directory and ...
1
vote
0answers
122 views

cygwin: ls -i reports wrong inode number for files in UNC path

I have a multiple-version backup, that uses hard links for files that have not changed from version to version, in my QNAP NAS. The backup target is an external EXT4 disk connected via eSATA to the ...
2
votes
0answers
2k views

Cygwin + /usr/bin/xterm: Xt error: Can't open display: :0

I am trying to run xcrysden on my windows PC using Cygwin. If i try to start an x server with : startx A black window opens for a split second , and i can read the follwing information in the command ...
3
votes
0answers
412 views

XDMCP “maximum number of open sessions from your host reached” but no session is active

I'm using XDMCP to access CentOS 6 hosts from Cygwin/X. Everything works fine, but every now and then attempting to connect results in the error message: XDMCP fatal error: Session declined maximum ...
2
votes
1answer
472 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 -...
0
votes
1answer
160 views

gnuwin bash If .txt file contains string copy file

okay so i know of grep -rhi, which extrats the line if string is found, but I want to copy the entire file so for example, file.txt > isexample #new iesameplxpele ieamama #new now if I used grep -...
0
votes
1answer
425 views

Cannot access folders created with rsync

I am using rysnc via Cygwin on Windows 7 Professional. $ rsync -version rsync version 3.1.2 protocol version 31 I am trying to set up a backup using rsync to a USB drive. I ran the following ...
15
votes
3answers
18k views

How to get traceroute on cygwin?

The implementation of traceroute(tracert) differs on Windows and Unix. I wanted to compare both with Wireshark. I am on Windows 7 now and I wanted to get Unix traceroute implementation quickly. My ...
1
vote
1answer
152 views

Printing Mathcad files

I am trying to automate printing of Mathcad Sheets using cygwin or ubuntu. lpr command does its job when it comes to text file but when I want to use it for mathcad, it gives me following error: ...
0
votes
1answer
237 views

error in find command (cygwin)

I have the following script: #!/bin/bash cd "/cygdrive/d/apple1/" _pwd=`pwd` _find=`find \"$_pwd\" -maxdepth 1 -type d | wc -l` echo "command: find \"$_pwd\" -maxdepth 1 -type d | wc -l" echo "find: ...
1
vote
1answer
2k views

cygwin unable to open gnome-session

On windows 7, I installed Cygwin, xorg-server, gnome-desktop, gnome-session. I start X startxwin and the X server starts. I can run gedit and a gui of the gnome editor will start. If i run gnome-...
0
votes
2answers
1k views

Cygwin - egrep command to find patterns from a given text file

I've been asked to find the set of words that begin with a substring of length 3 containing the characters a, b and c and which additionally contains another disjoint substring containing the same 3 ...
3
votes
2answers
682 views

Why doesn't my new cygwin .bashrc interactive check work?

I just updated Cygwin and the new .bashrc contains this line right at the top: echo "BEFORE TEST" # If not running interactively, don't do anything [[ "$-" != *i* ]] && return echo "AFTER ...
3
votes
2answers
124 views

Why am I getting this error in Swan-Cygwin?

I am using Swan for providing Linux support on my windows computer, I am having a slight problem while opening "Swan Terminal" (Xfce4/bash). it gives this errors while starting up: -bash: [: /home/...
3
votes
2answers
1k views

Accessing a git repository through ssh-config

I am trying to push to my git repository from cygwin but in vain. It used to work. I get $ git push ssh: Could not resolve hostname prooftheory: Name or service not known fatal: Could not read from ...
0
votes
1answer
743 views

linux/unix tree diagram

I have a picture of a tree diagram for linux/unix terminal. Just to verify the color scheme, all the blue labels must be folders, the greens are executable, but what are the black ones? Right under ...
1
vote
1answer
933 views

LS_COLORS not respected on Cygwin

Whilst trying to configure ls' colors on Cygwin (specifically the distro babun), I found that the custom extension colors that were in the LS_COLORS environment variable weren't being used. Here's an ...
2
votes
2answers
1k views

sed on cygwin can only replace one character?

I'm trying to replace an XML element in 20+ files on Windows using sed and cygwin. The line is: cd "D:\Backups\Tasks" sed -i 's~<StartWhenAvailable>true</StartWhenAvailable>~<...
2
votes
1answer
44 views

Installing source package has no effect

I am trying to install libgmp sources as I am trying to build some other source that requires gmp.h. In Cygwin setup-x86_64.exe I Search for gmp and it finds the libgmp line which says "6.1.2-1 Keep"...
9
votes
4answers
13k views

How to map ALT key in .vimrc?

In order to be able add blank lines without going into insertion mode, I'm trying to map ALT-o and ALT-O to o<ESC> and o<ESC> I've tried the following in my .vimrc map <M-o> o<...
0
votes
1answer
4k views

How can I make emacs run inside the Cygwin terminal?

On Windows 10, I have installed both emacs and cygwin, from their latest releases. When in Cygwin terminal I run $ emacs -nw emacs: standard input is not a tty How can I make emacs run inside the ...
3
votes
1answer
526 views

How to output process stats after completion?

I would like to run a process from bash in Cygwin so that I have some short summary after execution like peak memory usage or average CPU usage, like time but with more information. Are there any ...
0
votes
0answers
764 views

can't launch .lnk files with cygwin and git-bash

I have a problem where I can't do my vagrant up in cygwin, because cygwin can't understand non-POSIX style paths like C:\, which the vagrantfile uses. I use git-bash to start vagrant, because it can ...
2
votes
1answer
688 views

use stty command to enable remapping ctrl+v

Searching around, I found that stty -ixon enables remapping of C-q and C-s(such as in ~/.inputrc). Now I also want to remap C-v(to paste-from-clipboard, the default S-Ins feels awkward). With stty -...
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 ...
1
vote
0answers
454 views

Is there implicit path conversion in Cygwin?

http://www.mingw.org/wiki/Posix_path_conversion For any executable not dependent on msys-1.0.dll, MSYS will convert POSIX paths that are used as arguments to Win32 paths. This page attempts to ...
3
votes
2answers
8k views

I'm not getting syntax coloring in vim (using Cygwin)

I've been so far unable to figure out why vim's syntax coloring is not working for most files, and it's driving me batty. In case this is relevant: I'm working in Cygwin (more specifically/...
0
votes
1answer
312 views

Different bash profile files are loaded? For local and ssh-remote access to Cygwin

I have installed g++ package on Cygwin. so I see the following output in Cygwin: Input:$ which g++ Output: /cygdrive/c/mingw-w64/x86_64-6.2.0-posix-seh-rt_v5-rev1/mingw64/bin I have also installed ...
1
vote
1answer
72 views

Grep output from USBPcap

I hope cygwin questions fits here. If I try: USBPcapCMD.exe -d \\.\USBPcap4 -o - | hexdump -C it gives me the expected result. But if I try to grep that result I get nothing: USBPcapCMD.exe -d \\....
7
votes
1answer
5k views

Why is Cygwin not sourcing my .bashrc?

I'm switching to Cygwin from the bash shell that ships with Git for Windows, and for some strange reason the .bashrc file is not being sourced when I open a new Terminal. I have to source .bashrc ...
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. ...
0
votes
1answer
83 views

Cygwin - Obtaining new commands [closed]

I installed Cygwin to get the bash shell on window 8, and I'm not able to use vim, ssh, apt, install command. Many commands work now, while it didn't work in few minutes ago. What could I do to obtain ...
2
votes
0answers
26 views

Attempt local SSH Keys before Agent

I have a key in a KeePass database made available using KeeAgent. I also have a key in the ~/.ssh folder. When I attempt to SSH, it tries the key from KeePass first (even if I have an IdentityFile ...
1
vote
0answers
599 views

Can't log into localhost via SSH, but authentication succeeded

When I try to use ssh to login locally, it closes the connection. $ ssh -vvv Chloe@localhost ... debug2: we sent a publickey packet, wait for reply debug1: Authentication succeeded (publickey). ...
1
vote
0answers
319 views

Cygwin and Tmux run-shell

I've run into a somewhat odd issue on Cygwin when I'm using the Tmux command run-shell. Given the script: #!/usr/bin/env bash read -r -d '' var << EOF This is line 1. This is line 2. Line 3. ...
0
votes
1answer
6k views

Error: Can't open display: localhost:0.0 but :0.0 works [duplicate]

I can't seem to find what config is missing. It use to work this way there might be something change in cygwin. I had similar setup which was always working. I have make sure that firewall on windows ...
2
votes
3answers
335 views

is it possible to trigger `ssh-add <key>` only when I ssh into a box? (from Cygwin)

I've got my .bash_profile set up to eval $(ssh-agent) so I can quickly connect to servers. If I add ssh-add ~/.ssh/id_rsa_my_key to my .bash_profile as well, I'll have to type the ssh key passphrase ...
1
vote
2answers
38 views

Copy part of the content of the previous row into the following

I have a file with the following structure: GO:0000001 mitochondrion inheritance GO:0000002 mitochondrial genome maintenance GO:0000003 reproduction alt_id: GO:0019952 alt_id: GO:...
1
vote
1answer
95 views

Extract all lines from a word to another with my match in between

I have a file with the following structure: [Term] id: GO:0000001 name: mitochondrion inheritance namespace: biological_process def: "The distribution of mitochondria, including the mitochondrial ...
1
vote
1answer
402 views

Why does my Cygwin Bash always read from terminal when I try to execute an external command?

Please note that this is NOT the "command not found problem" where the path is incomplete. External commands appear to start OK and immediately seek terminal input instead of producing terminal ...
5
votes
2answers
11k views

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

What is the difference between "." "./" and "source" ?
2
votes
1answer
962 views

Cygwin serial tty device for high-numbered COM ports

My hardware enumerates as COM125 on the device manager (CDC-ACM class). But, I can't find it under /dev/tty* listing. Does cygwin have a limitation on CDC-ACM class of com ports or numbers greater ...
3
votes
0answers
452 views

Has anyone built ksh93, AST, or UWIN from the AT&T repo on Github, in Cygwin?

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 ...
3
votes
1answer
1k views

How can I automatically get the groups corresponding to Administrators in a cygwin shell?

My regular user account is part of the Administrators Group. When I start a cygwin shell using mintty, I don't get the group name corresponding to the Administrators Group in my set of groups. Here's ...

1 2 3
4
5
7