LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Forking Related.. (https://www.linuxquestions.org/questions/linux-general-1/forking-related-331538/)

abhijeetudas 06-08-2005 09:26 AM

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 ..

btmiller 06-08-2005 09:30 PM

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.

abhijeetudas 06-09-2005 01:58 AM

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.