screen FLY by, where is the pause? Debug needed

Marc Christiansen tolot at utolot.toppoint.de
Thu Sep 16 03:07:40 EDT 1999


Ben Thomas <bthomas at trey-industries.com> wrote:
> I am woirking on my first python script. I am trying to find out why I
> am not geting the results I expect. Is there a way to pause these
> 'system' calls so the screens don't fly by so fast? I can't see the dos
> error messages.  I checked my book and deja but I don't see the answer.

You could add a raw_input('Press Enter') after each system(). This will output
'Press Enter' and wait for you to do so. You could try CTRL-S to stop the
output and CTRL-Q to continue, but this may not work. I can't test it,
since I don't have DOS here. Have you tried the commands you call via
system() by hand in a shell? Do they work then?

> from string import *
> from DateTime import *
> from os import *
> 
> system('dir >d:\\data\\vacman\\time_start.txt')
> system('map root t:=terra\vol1:prog_w31\vacman')

I think what you want is:
system('map root t:=terra\\vol1:prog_w31\\vacman'). You forgot to double
the '\'. Maybe this was the error.

Ciao
  Marc
-- 
"Claims about the evils of cannabis have been exaggerated: The question now
 is not whether it should be legalised, but how and when."
                        http://www.newscientist.com/ns/980221/contents.html
PGP-Key fingerprint   EE 2E C1 06 D1 28 89 D2  F9 CE 35 7B F8 F4 42 52




More information about the Python-list mailing list