Re: [Tutor] Invoking bash from python

2006-08-07 Thread William Mhlanga
I think I found a solution to my problem and thats to use the os module (os.system function). I'm still open to any suggestions you may have.--WillOn 8/7/06, William Mhlanga <[EMAIL PROTECTED]> wrote: I'd like to write an app that helps a user install a program on Linux after fe

[Tutor] Invoking bash from python

2006-08-07 Thread William Mhlanga
I'd like to write an app that helps a user install a program on Linux after fetching it from a remote site. The program is packaged as a bin file and when run from bash, the user has to agree to a licence agreement by entering "y" or "n" and enter a path for installation. It seems like I need to fi

[Tutor] Python app and UNIX commands

2006-03-31 Thread William Mhlanga
Hello, I have come up with an idea of an app that I would like to write using python but I need some guidance. I would like to write an app for Linux/Unix that fetches a gzipped or bzipped file from a remote server by http or ftp.  The file will be downloaded to a temporary directory, unzipped and

[Tutor] Guess my number game

2005-12-15 Thread William Mhlanga
I have been trying to write a guess my number game (using Michael Dawsons book), where the computer guesses the number that I thought of. Here is my code so far,#The Guess My Number Game ##The computer picks a random number between 1 and 50#The player tries to guess it and the computer lets#the pla