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

14
votes
5answers
9k views

Best way to use a shell with Cygwin in Windows 7

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 ...
11
votes
4answers
4k 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
3answers
439 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 ...
1
vote
3answers
1k 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 ...
2
votes
1answer
117 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 ...
7
votes
4answers
298 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 ...
1
vote
2answers
609 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 ...