×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

problems in creating the daemon process

problems in creating the daemon process

problems in creating the daemon process

(OP)


Am sending my program through this attachment..i created some widgets by wxpython ..i got so many
problems in that..

1)when i click a 'start' button it has to begin a background process to display 'aodv.log' file information in text field.displaying must be continues process so i need daemon for this...i created by 'fork()' command, but for continues while loop it is not responding.....but for single instance it is working.

2)when i press 'start' button again(already daemon is running in background),i need to start the same process again,,so i used as 'kill()' method to stop process but in my program it is killing the original process...



my program is in this link
http://www.mediafire.com/file/mj4hqay8qivb86z/mainwindow.py



my aodv file is like thisss--------------->



      3 0.743297    192.168.1.102         255.255.255.255       AODV     Route Reply, D: 192.168.1.102, O: 192.168.1.102 Hcnt=0 DSN=1 Lifetime=2000
      6 1.770342    192.168.1.102         255.255.255.255       AODV     Route Reply, D: 192.168.1.102, O: 192.168.1.102 Hcnt=0 DSN=1 Lifetime=2000
      9 2.810353    192.168.1.102         255.255.255.255       AODV     Route Reply, D: 192.168.1.102, O: 192.168.1.102 Hcnt=0 DSN=1 Lifetime=2000
     12 3.846412    192.168.1.102         255.255.255.255       AODV     Route Reply, D: 192.168.1.102, O: 192.168.1.102 Hcnt=0 DSN=1 Lifetime=2000
     15 4.870408    192.168.1.102         255.255.255.255       AODV     Route Reply, D: 192.168.1.102, O: 192.168.1.102 Hcnt=0 DSN=1 Lifetime=2000
     18 5.922428    192.168.1.102         255.255.255.255       AODV     Route Reply, D: 192.168.1.102, O: 192.168.1.102 Hcnt=0 DSN=1 Lifetime=2000
     21 6.943461    192.168.1.102         255.255.255.255       AODV     Route Reply, D: 192.168.1.102, O: 192.168.1.102 Hcnt=0 DSN=1 Lifetime=2000
     24 7.982517    192.168.1.102         255.255.255.255       AODV     Route Reply, D: 192.168.1.102, O: 192.168.1.102 Hcnt=0 DSN=1 Lifetime=2000
     27 9.006551    192.168.1.108         255.255.255.255       AODV     Route Reply, D: 192.168.1.102, O: 192.168.1.102 Hcnt=0 DSN=1 Lifetime=2000
     30 10.022574   192.168.1.104         255.255.255.255       AODV     Route Reply, D: 192.168.1.102, O: 192.168.1.102 Hcnt=0 DSN=1 Lifetime=2000




please go through it and help me ..in this program...
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close