470,644 Members | 1,202 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,644 developers. It's quick & easy.

os.system call problem

I use os.system to call a display program, e.g.

os.system(displayblah blah) to call display. the program starts and
display things I wanted. When I kill display, somehow the python
program don't understand I want to move on, keep calling
os.system(displayblah blah) again and again.
I have to kill terminal to quit them all.

How can I migrate back to my python program after I kill the display
program?

Thanks a lot

Apr 27 '06 #1
2 1336
"questions?" <un************@hotmail.com> wrote:
I use os.system to call a display program, e.g.

os.system(displayblah blah) to call display. the program starts and
display things I wanted. When I kill display, somehow the python
program don't understand I want to move on, keep calling
os.system(displayblah blah) again and again.
I have to kill terminal to quit them all.

How can I migrate back to my python program after I kill the display
program?


Python doesn't run os.system() over and over again by itself, so
there's probably something wrong with your code.

how about posting the relevant code, so we don't have to guess ?

(if you have some time to spare, reading

http://www.catb.org/~esr/faqs/smart-questions.html

won't hurt either)

</F>

Apr 27 '06 #2

Fredrik Lundh wrote:
"questions?" <un************@hotmail.com> wrote:
I use os.system to call a display program, e.g.

os.system(displayblah blah) to call display. the program starts and
display things I wanted. When I kill display, somehow the python
program don't understand I want to move on, keep calling
os.system(displayblah blah) again and again.
I have to kill terminal to quit them all.

How can I migrate back to my python program after I kill the display
program?


Python doesn't run os.system() over and over again by itself, so
there's probably something wrong with your code.

how about posting the relevant code, so we don't have to guess ?

(if you have some time to spare, reading

http://www.catb.org/~esr/faqs/smart-questions.html

won't hurt either)

</F>


you are exactly right.
I did a while loop and forgot to update the condition.

Thanks for the suggestions!

Apr 27 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Jakub Moscicki | last post: by
1 post views Thread by Erik Johnson | last post: by
8 posts views Thread by Siemel Naran | last post: by
2 posts views Thread by Xah Lee | last post: by
4 posts views Thread by Liverpool fan | last post: by
1 post views Thread by bugnthecode | last post: by
1 post views Thread by qilin | last post: by
35 posts views Thread by jleslie48 | last post: by
1 post views Thread by Korara | last post: by
reply views Thread by warner | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.