"John" <[EMAIL PROTECTED]> wrote
> for i in attempts: #attempts holds strings of shellscripts
> cmd="%s which runs many different shell scripts and takes
> about an
> hour" % (i)
> os.system(cmd)
> #debugging
> print "Finished with %s" % (i)
> raw_input("More debugging, shouldn't see this until shell
> scripts
> are finished!")
>
>
> But it prints the print statement and waits for raw_input
> instantly... Any
> thoughts?
Have you checked the return code from system is zero - ie successfuil
execution?
If there is an error in your command string (or you have set the
command to
execute in the backgrouynd with &) the system call will return
immediately
with an error.
Also I assume your cmd is not really like the one above which would
always give an error!
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor