LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-08-2005, 09:26 AM   #1
abhijeetudas
Member
 
Registered: Sep 2004
Distribution: Redhat / Fedora
Posts: 114

Rep: Reputation: 15
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 ..
 
Old 06-08-2005, 09:30 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
 
Old 06-09-2005, 01:58 AM   #3
abhijeetudas
Member
 
Registered: Sep 2004
Distribution: Redhat / Fedora
Posts: 114

Original Poster
Rep: Reputation: 15
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..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Forking a Project posto Programming 3 08-29-2005 05:39 PM
Forking under Slackware 10 DD32 Slackware 10 07-16-2004 03:30 PM
Forking is very slow jspenguin Linux - General 2 05-29-2004 02:03 PM
Forking and multiprocessors sniff Programming 4 02-18-2003 05:28 PM
need help forking pings penguinboy Programming 2 09-12-2002 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration