HELP: W2K Python + Cygwin shell script
Jason Tishler
jason at tishler.net
Tue Dec 2 07:45:00 EST 2003
Pekka,
On Sun, Nov 30, 2003 at 09:12:12PM +0200, Pekka Niiranen wrote:
> Before I start the trial & error -cycle, has anybody tried to start
> Bash -shell script in Cygwin environment from Python running in W2K?
Something like the following should meet your needs:
Python ... [MSC 32 bit (Intel)] on win32
>>> import os
>>> os.system('bash ~/bin/foo.sh')
foo
0
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
More information about the Python-list
mailing list