The relevant part of the code looks like this:
pids = []
for size in SIZES:
pids.append(os.spawnv(os.P_NOWAIT, RESIZECMD, [RESIZECMD, lotsOfOptions]))
# Wait for all spawned imagemagick processes to finish
while pids:
(pid, status) = os.waitpid(0, 0)
if pid:
pids.remove(pid)
What this should be doing is spawning ...
Hi,
I've been strugling for two weeks to create an environment for building a gstreamer plugin on windows (needed for a songbird addon).
I've installed MSYS, MinGW and Cygwin, then installed GStreamer OSSBuild, and I also downloaded the sources for Songbird, which come with their own precompiled version of gstreamer.
I was unable to r...
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 changed the syntax and now is "mount -o binary" for the "mount -b"part. But now it says unknown option with the "-s" anyone?? help?? or what ...
I am working on a Windows PC and have cygwin on it!
I have organized all my jars under a directory within a few directories!
I am writing a bash script to set the CLASSPATH by iterating through the directory that is passed as a parameter as follows:
for JAR_FILE in `ls *.jar`
do
CLASSPATH="$DIRECTORY_TO_LOOK_FOR_JARS"/$JAR_FILE:$CLA...
Hi All,
I am programming C on cygwin windows. After having done a bit of C programming and getting comfortable with the language, I wanted to look under the hood and see what the compiler is doing for the code that I write.
So I wrote down a code block containing switch case statements and converted them into assembly using:
gcc -...
Hi,
I want use OpenSSL in my application using jni with Android NDK but i unable to understand how can i do i don't exact process and even i don't have any sample code for that so any one can help me please send me a sample code or how to do this. I am waiting for reply.
...
I have a tcl script that calls a lot of functions from bash including ssh. The part I'm struggling with looks like this:
proc connect {where} {
set bash c:/cygwin/bin/bash
catch {exec $bash -c "ssh $where"} result
puts $result
}
connect user@localhost
I get the authentication failed message:
Pseudo-terminal will not be al...
I am just starting out with git on the Windows platform. I have mysygit installed and bar a few hiccups I am 'git'ing away nicely.
However, I must be missing something because I don't understand how two msysgit clients on different Windows machines can push and pull to each other directly?
I am a complete linux noob but I think I can ...
I've been trying to run a program that will invert the order of a string and to run it, I have to type a second argument in prompt.
int main(int argc, char* argv[])
{
string text = argv[2];
for (int num=text.size(); num>0; num--)
{
cout << text.at(num);
}
return 0;
}
e.g. ./program lorem result: me...
Hey guys I have one php exec command that works on my remote linux server but not my windows (WAMP package) local server. I really want to create an identical workstation so I can test locally and then update my remote server. If anyone has any suggestions or solutions other than converting to linux, I would really appreciate it.
<?php
...
It is possible to have two versions of GCC to coexist: the native windows MinGW version and the cygwin linux version? Things get problematic when on Cygwin the system tries to compile with the MinGW version of GCC, and vice versa. How can I keep both versions of GCC?
...
I couldn't find an answer for this exact problem, so I'll ask it.
I'm working in Cygwin and want to reference previous commands using !n notation, e.g., if command 5 was which ls, then !5 runs the same command.
The problem is when trying to do substitution, so running:
!5:s/which \([a-z]\)/\1/
should just run ls, or whatever the arg...
I'm trying to install a Rails app on a Cygwin Rails + WAMP MySQL setup, but rake trows an error :
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Of course, it's trying to connect to MySQL trought a Cygwin socket, and since there's no MySQL server running on Cygwin, it fails.
How do I get Rails to connect to ...
I've been using Imagemagick's mogrify on Cygwin, but at some point it stopped working. I've tried uninstalling / reinstalling, but still no go.
When I try to run mogrify it trows this error :
/usr/bin/mogrify.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
Anyone have any hints ...
Hi,
I tried to invoke java inside bash script on windows (Win XP) using cygwin.
However path to java.exe contain spaces.
only literaly putting in bash sometghing like this worked:
/cygdrive/c/Program\ Files/Java/jdk1.5.0_10/bin/java -cp "$TOOL_HOME" DateParse "$DATE" "$FORMAT"
My attemts to put java path to a variable failed:
exp...
I need to have a makefile work under DOS (Windows) and Cygwin. I having problems with the makefile detecting the OS correctly and setting appropriate variables.
The objective is to set variables for the following commands, then invoke the commands in rules using the variables:
Delete file: rm in Cygwin, del
in DOS.
Remove director...
Is is possible to connect one of either WinEdt or TeXnicCenter (Windows variant) such that it uses a TeTeX distribution of LaTeX that is included from a Cygwin distribution? I simply cannot use MiKTeX because my bash-specific scripts called from the top level of my latex source using an \immediate\write18 command will not work using MS...
We need to support a legacy app that provides a Unix and a Win32 port. Unfortunately, later in the game, a lot of glue code was written in ksh scripts for the unix port only, and the Win32 port has lost parity. I've been trying to revive it, and I've been trying some ksh-for-windows solutions (a native build of Zsh used to work in the ...
I am running git daemon with the following command.
c:\cygwin\bin\git daemon --reuseaddr --base-path=/cygdrive/S --export-all --verbose --enable=receive-pack
I am able to clone and pull updates but when I try to push I get
$ git push origin master
Counting objects: 6, done.
Delta compression using up to 2 threads.
Compressing objec...
Can I start installing boost libraries, ACE framework and use it as my home Linux server?
...