Forking Related..
HI,
Im writing a small perl script that could change the IP address of a machine from the web browser.. Now when i change the IP address { Im gonna get kicked out of my brwoser.. acceptable } but then the command that i issue.. service network restart .. works service httpd restart { doesnt work. } .. [ this is a shell script ] coz the perl process that executes this is called as apache user so when apache dies it kills the process with it thus.. resulting in me never seeing the Web page unless i start it manually.. i kno web min does it using some fork processing .. |
Fork is a system call that splits off a child process. What exactly is tyour question about it? If you want syntax, your best is to read the perldoc page on fork. It should give you just what you need.
|
Well
what i want to do is .. in a nut shell Fork a child process & then the child should continue to execute even after the parent dies.. |
All times are GMT -5. The time now is 08:44 PM. |