Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problems in creating the daemon process

Status
Not open for further replies.

bhavanasi

Programmer
Jan 6, 2011
11
0
0
IN
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



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...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top