0
votes
1answer
14 views

Cygwin: Run a script in mintty/bash

Initially asked on SO.com, but I closed it. I think it better fits SU.com. Please tell me if it is also not the right place. I want to add a context menu to a .sh file to run it in cygwin. I tried ...
3
votes
2answers
54 views

Practical (closest to the classical Linux one) way to use (automate) SUDO for CygWin

Being able to use sudo commands in CygWin is useful, and faster than opening an elevated shell: Luis@Kenobi /cygdrive/c/Users/Luis $ net user /add TestUser System error 5. Access denied. Luis@Kenobi ...
2
votes
1answer
22 views

How do I reverse the text in a file / stream in UNIX / Cygwin?

I have a block of text that I want to put in reverse-characer order (backmasking). Is there a simple way to do that via a Unix / Cygwin command-line?
0
votes
1answer
33 views

How can I select what user account will run a Windows service (run as) from command-line?

As one of the steps for installing CRON daemon for CygWin in Windows, it is worthful (not mandatory on WinXP, but seems to be greatly adviced since Win7) to change (along with some others ...
1
vote
1answer
71 views

Running a CygWin shell: what windows console (DOS) commands do disappear?

If under my Windows with CygWin (v2.831 32bits) I do: cmd mode 80,50 the screen width changes, but if I open a CygWin terminal, like bash: C:\cygwin\bin\bash --login -i $ mode 80,50 bash: ...
1
vote
2answers
138 views

How do I get Linux commands and scripts to work on Cygwin?

I'm back with a follow up question. How do I get Linux commands to work on Cygwin? First I asked you what tool should I use to help me run my Linux scripts on Windows and you suggested Cygwin and I ...
0
votes
0answers
13 views

Remove Windows link associations from recursively linked files (created by mistake)

So, because of Windows' bone-headed reverse syntax and the generally piss-poor command line utilities, I accidentally created several hundred recursive links on files in many directories and nested ...
1
vote
0answers
32 views

Why can I remove certain files in Cygwin but not Command Prompt?

I have a folder that contains files I have compiled in .NET (however this question could easily apply to a non-programmer's folder too, e.g. containing word documents or whatever.) When I try to ...
0
votes
1answer
86 views

how to call .R script using .sh in windows

I have an analysis to run in skatMeta (R package). I received a runscript.sh that calls myfile.R to run the analysis. However, the script is written for Linux, but I only have Windows. I installed ...
1
vote
1answer
73 views

Search command history in Console2 that mimics CTRL+R from cygwin

I am trying to use Cygwin inside of Console2 (for the tabs). However, I use CTRL+R to search my command history in a fuzzyish way, a lot. In Console2, CTRL+R is a hot key for renaming the tab. I ...
3
votes
0answers
63 views

Installing GNU mailutils on windows

I'm using Windows 7, and would like to use the GNU mailutils, specifically mu and mu4e. Unfortunately, these are not available as Cygwin packages. Is there any way to use GNU mailutils on windows ...
2
votes
1answer
101 views

BSD fortune for Windows command prompt or DOS

This is probably a stupid question, but I was just wondering if the following is doable: If I should just forget about it and go the VM/ full GNU-Linux OS route, that's fine.After mucking about with ...
1
vote
1answer
67 views

Add commands auto completion to Cygwin

I'm looking for a 'modernized' cmd.exe and I find myself quite comfortable with Cygwin. However, I can't make Cygwin auto complete some "commands" I need (programs in SysInternal Suite like ...
2
votes
3answers
94 views

It there any tiled console/command prompt for Windows OS?

I need to monitor 2-4 console windows at the same time. Now I'm using 4 cygwin mintty windows, each takes 1/4 of my whole desktop space. The problem is that they aren't tied together. And if I switch ...
0
votes
3answers
287 views

Copy a list of files preserving directory structure, without scripts

Is there a way to copy a list of files, that share a common base directory, preserving their relative directory structure? The files with relative paths are listed in a text file. edit I have the ...
1
vote
1answer
58 views

Less in cygwin can't read file created from redirected windows cmd script

I'm running windows cmd script from windows console and redirecting output to a file by mycommand.cmd > 'filename ' 2>&1 the problem is, when I'm trying to read that file using less under ...
0
votes
2answers
119 views

Why won't Cygwin run windows apps that interact with the shell/command line?

After a recent update, Cygwin bash shell works for any commands that don't require interaction, but if an app needs interaction (for example the python shell), it won't work, the prompt never appears, ...
0
votes
0answers
105 views

How to remove Administrators group from access token

When I run cmd.exe from the Start button, then run "whoami /groups" in order to view the access token, I see that the Administrators group is not in my access token. That's good - I want to not have ...
2
votes
1answer
93 views

How do you call ActivePython from cygwin shell?

I installed ActivePython which is a Python version 3.x installation for Windows. I renamed the interpreter to be activepython.exe so as to allow calling it from cygwin without modifying /etc/profile ...
2
votes
2answers
318 views

How to invoke Windows' gvim in a Windows environment from within Cygwin?

When I give a gvim command in Cygwin, I want it to invoke the gvim I've installed in my Windows. I tried writing a function in my .bashrc called gvim that invokes the gvim.exe in my Program Files ...
0
votes
0answers
72 views

Pylint on Windows XP and Cygwin

Having recently upgraded my Python installation from 2.4 to 2.7 (ActiveState), I can no longer get pylint to work in either Cygwin: $ pylint C:\Python27\Python.exe: can't open file ...
4
votes
1answer
101 views

Saving a process ID when detaching a command in Bash

When I detach command: $ command & The result is a printout to STDOUT: [1] < PID > I would like to monitor this PID. However, I cannot write this output anywhere but STDOUT! How can I ...
0
votes
4answers
345 views

How do you pass a file or folder containing whitespace as an argument to a command-line program in a GNU/Linux or Cygwin environment?

There are occasions when you are working with files and folders that contain spaces in them. The problem is any time you try and pipe files / folders containing whitespace to another command-line ...
0
votes
0answers
223 views

How to politely kill windows process from cygwin

I do have a bat(startJboss.bat) file that starts a JBoss server. When I start it it creates an output to standard cmd (windows) console. When I want to politely end this process I just hit Ctrl + C ...
0
votes
1answer
42 views

What is the way in cygwin to install everything from a local directory from the command line

I have a local repo of cygwin that I would like to deploy across various test machines. Is there a command that I could script out to install cygwin along with all of the packages in my local ...
1
vote
1answer
291 views

Understanding the terminal and shell interaction

For a long while my understanding about a terminal in unix-like systems has been that it launches the shell process and provides a user interface to it by communicating with it over it's stdin, stdout ...
4
votes
2answers
986 views

How to persist bash history?

I don't know if this is expected, but my history is not saved across sessions. This is to say, if I close the window, then when I open it again, the history is empty. How can I persist it across ...
8
votes
1answer
957 views

Why is java.exe not visible from cygwin, but is visible from command-prompt?

Why can't I see java.exe from Cygwin?
0
votes
1answer
415 views

How to escape the arguments correctly when calling cygwin bash -c?

I am trying to call the scanimage command (from the SANE tool) from inside cygwin though I think that my problem is one of general escaping so maybe what I am calling doesn't matter. Anyway... The ...
4
votes
1answer
576 views

Is there a command line tool in cygwin to copy a file to the clipboard?

I'd like to do something like this: On the command line, copy a file to the Windows clipboard In Windows Explorer, paste the file/files into a current location Is there a simple tool to do this, ...
1
vote
2answers
2k views

Color in Cygwin terminal

I've installed cygwin because I'm a bit fed up with the Windows terminal not being great. The only problem I'm having is the lack of colours. You can see the problem in the following 2 screenshots ...
0
votes
1answer
201 views

Cygwin shell is overriding my Windows shell

I'm not sure what I did, but I've somehow got Cygwin installed in such a way that even when I try to run an ordinary windows shell, Cygwin is interfering. I have batch scripts that I want to run in ...
2
votes
2answers
335 views

Copy all files from a directory tree into one directory

I'm running on Windows but have Cygwin so Windows or simple Linux versions are both OK. My camera-phone stores images in a directory tree based on date, but still appears to name each file uniquely. ...
1
vote
2answers
1k views

Windows 7 environment variable not removable

I installed MKS on Windows 7 and with it MKS Toolkit was silently installed. This also seems to set some global environment variables like "TERM" and "TERMCAP". As these variables won't work together ...
12
votes
2answers
12k views

How can I access volume levels from the command line on Windows 7?

What I need I'm looking for a tool or a script that allows me to access the Windows volume levels from the command line. Ideally it would allow me to get and set all volumes including application ...
1
vote
2answers
280 views

List all files in a directory matching a string and copy output

I'm trying to create a series of playlists on my MP3 player, running Rockbox, by finding a file matching a string, using find /cygdrive/g/MUSIC -type f -name "Search Criteria" | ...
2
votes
2answers
872 views

Command line tool to search docx file under ms dos or cygwin

Is there a command line tool that is able to search .docx file under MS DOS or Cygwin ? I have tried Grep, it's not working with .docx while working fine with .txt file. I know I could always ...
0
votes
1answer
466 views

Pseudo- Sudo on Cygwin/bash

I need sudo to work, well not sudo itself but a way of allowing the sudo commands to work as described here. This would be great however the sudo lines have extra arguments, like : sudo -u user bash ...
1
vote
5answers
695 views

Is there a shortcut for /cygdrive/

Is there a shortcut for typing /cygdrive/ for every path? Is it possible to alias /cygdrive/ to /cd/ for example?
4
votes
1answer
586 views

How do I make ESC clear a line in Bash Under Windows instead of Ctrl+u?

I use bash in Windows, both in Cygwin and in Git Bash (part of Git for Windows). In bash unlike in the Windows cmd.exe Esc does not clear the line, only Ctrl + U. How can I make clear the line also? ...
0
votes
1answer
2k views

Trouble using Cygwin rebaseall: "only ash or dash processes [duplicate]

Possible Duplicate: Running rebaseall on Cygwin I'm following the instructions from this post on how to run the rebaseall command: Cygwin fatal error unable to remap.. What does it mean? ...
1
vote
1answer
226 views

cygwin file command not detecting mpg?

I have noticed that the file command in linux, is detecting this mpg as data? http://www.berkut13.com/videos/brakeup.mpg it detects flv ok but this mpg file it doesn't.. i'd like to be able to ...
2
votes
2answers
5k views

Get display resolution from windows command line

I have seen several suggestions about programs to change the resolution from the command line. However I just want to display it, not change it. On linux I can use xrandr or xdpyinfo to get this ...
4
votes
2answers
1k views

How do I start cygwin with a specific command?

I want to start Cygwin and it should instantly connect to some server: $ ssh user@1.1.1.1 for example, how I can achieve this?
4
votes
4answers
2k views

What's the command prompt's equivalent to cygwin's ctrl+z

Whenever I want to quit something in Cygwin, Ctrl + Z usually does the trick. What's the equivalent in the command prompt?
2
votes
1answer
324 views

Can I specify a specific account or “From” address in a command line for Thunderbird?

I am trying to create a bash script that will allow me to send a batch of emails out. I am using Cygwin, Windows XP and Thunderbird 3.1.3. I have the script generating an email just fine. The ...
9
votes
2answers
5k views

Running cmd.exe from within Cygwin

I'd like to use Cygwin for my main shell at work, but my group uses batch files for several processes. I've been told that I can just do cmd /c batch.bat to run the batch file from Cygwin. This works ...
1
vote
2answers
187 views

(Cygwin 1.5.5-1 + CVS 1.11.21) vs. (cygwin-1.7.5 + CVS 1.11.22)

Preparing a new machine for development, I upgraded Cygwin and the CVS client as described in the subject line: from (Cygwin 1.5.5-1 + CVS 1.11.21) to (cygwin-1.7.5 + CVS 1.11.22) All went well, but ...
2
votes
2answers
209 views

A good list of command line *nix like apps for windows?

I'm looking for a list of command line *nix like apps for windows. I suppose gnuwin32 is a good idea, and cygwin... Each give a good list. any other ideas? I know sometimes there are good programs ...
1
vote
1answer
671 views

Unrecognized switch for Cygwin mount command

I'm trying to configure the cygwin to work with TWiki, I have to input this in the Cygwin bash shell: mount -b -s c:/... but it doesn't recognize the -s, I already fixed the problem with -b, it ...