Re: [Tutor] Running an exe from Python

2007-02-26 Thread Dan Klose
On 2/26/07, Nagendra Singh [EMAIL PROTECTED] wrote: Thanks a lot for all the suggestions. I used the function subprocess.call( 'c:\abc.exe c:\data\file1'), but as before the command window opens and closes very fast a value of 1 is displayed. How do I see the results?? I am sorry if I sound

[Tutor] issuing system commands

2007-01-26 Thread Dan Klose
Hi All, I am trying to break my nasty habit of doing EVERYTHING in perl and for this task I figure python is one of the better options. I would like to do several things: 1. take user input - this will be a password 2. use some sort of function that converts the unser input to * or the typical

Re: [Tutor] [OT] triangulation

2005-11-10 Thread Dan Klose
Hello, On Thu, 2005-11-10 at 11:00 +0100, Joerg Woelke wrote: On Thu, Nov 10, 2005 at 02:04:20PM +1300, John Fouhy wrote: On 10/11/05, Gregor Lingl [EMAIL PROTECTED] wrote: but Shi Mu didn't ask for a program in English ;-) This is pretty off-topic, but --- Is it possible to be a

[Tutor] perldoc - confused!

2005-10-21 Thread Dan Klose
Hello Python List, When using perl I tend to use perldoc. I spent ages today trying to list all items in a directory, simple I now know (os.listdir) but I was trying to use os.walk simply because I had no idea that listdir existed. I only found listdir because I was reading about walk Is

[Tutor] file opening and errors.

2005-10-20 Thread Dan Klose
Hi, I usually use perl but fancy a bit of a change so have started playing with python. using perl to open a file or directory I usually use: open(FILE, $file) or die Error: $!\n; The $! is a perl variable that holds an error should the open fail, example being : No such file or directory.