Re: Fork

2003-12-09 Thread Randal L. Schwartz
short example about how I should create that loop? Any one of the articles you get from the following google search: site:stonehenge.com cgi fork should be able to help you out. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://

Re: Fork

2003-12-09 Thread drieux
On Dec 9, 2003, at 9:53 AM, Octavian Rasnita wrote: Can you give me a short example about how I should create that loop? a strategy I proposed over on the beginner's list would look like say: That of course was built for a command line i

Re: Fork

2003-12-09 Thread Octavian Rasnita
t; <[EMAIL PROTECTED]> To: "Octavian Rasnita" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, December 08, 2003 6:58 AM Subject: Re: Fork > > > > Hi all, > > > > Please tell me how could I fork more child processes. > > I wan

Re: Fork

2003-12-08 Thread Wiggins d Anconia
> Hi all, > > Please tell me how could I fork more child processes. > I want to fork let's say 10 child processes. > > I know that I can do something like the following, but I am wondering if > there is a clearer method: > > if (my $pid = fork) { > #parent &

Fork

2003-12-08 Thread Octavian Rasnita
Hi all, Please tell me how could I fork more child processes. I want to fork let's say 10 child processes. I know that I can do something like the following, but I am wondering if there is a clearer method: if (my $pid = fork) { #parent if(my $pid2 = fork) { #parent 2 if (my $pid3 =

How to fork a process?

2003-11-05 Thread Octavian Rasnita
Hi all, I've tried the following code: #!/perl/bin/perl -w use strict; $| = 1; print "Content-type: text/html\n\n"; my $pid=fork; if ($pid) { print "parent\n"; exit 0; } else { ⊂ } sub sub { sleep(100); open(OUT, ">>f:/teddy/.txt") or die "

Fork?

2002-06-16 Thread Octavian Rasnita
Hi all, I've seen the following line in a search script that uses swish-e search engine: "#This example program will only run under an OS that supports fork()." I think fork is supported under Unix, but what about Windows? Is fork a Perl function or only a Unix command?

fork

2001-11-10 Thread Cristian Ditoiu
Hello , I have a little question : forking...where can i find some good doc about forking . Ie : i have a mailing-list script , and i don't want to make the user wait for the 2000 messages being submited . Instead i want the script to fork ...any ideea , link ? thank you

Re: Do I use fork() for this?

2001-07-19 Thread Mel Matsuoka
At 09:52 AM 07/19/2001 -0700, Randal L. Schwartz wrote: >Type "search in progress" into >http://www.stonehenge.com/perl/googlecolumnsearch >and see the column I've already written on it. > >In fact, keep that URL bookmarked, because anytime you have *any* Perl >problem, I've probably already writ

Re: Do I use fork() for this?

2001-07-19 Thread Pierre Smolarek
i recommend you buy the Perl Cookbook by o'reily there is a great fork section - Original Message - From: <[EMAIL PROTECTED]> To: "pierre smolarek" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 2:43 PM Subject: Re: Do I use

Re: Do I use fork() for this?

2001-07-19 Thread tommy
o : [EMAIL PROTECTED] CC : [EMAIL PROTECTED] : 19 July 2001 13:39:45 Subject : Re: Do I use fork() for this? :) > >the daemon is server side and runs in the background. So unless you have >shell, you can't start it off that easily. > >What you could use BUT IT IS EXPERIMENTA

Re: Do I use fork() for this?

2001-07-19 Thread Pierre Smolarek
ation for your. But be warned.. its very beta and can not be relied on! Threads I not standard and needs to be compiled in with perl on install. Threads will be standard in perl 6 (long live the dream) until then, I would fork away the way I told you in my earlier email > Is that is the onl

Re: Do I use fork() for this?

2001-07-19 Thread tommy
riginal Message- >From : Pierre Smolarek <[EMAIL PROTECTED]> To : [EMAIL PROTECTED]; [EMAIL PROTECTED] Date : 19 July 2001 13:01:58 Subject : Re: Do I use fork() for this? not really the best way in my opinion > >what you could do is use two scripts. > >first script i

Re: Do I use fork() for this?

2001-07-19 Thread Pierre Smolarek
e? Pierre - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 12:53 PM Subject: Do I use fork() for this? > Hello all, > > I'm currently trying to put a little "search engine" together for > a small

Do I use fork() for this?

2001-07-19 Thread tommy
y 20 mins on the DBM file so that it gets tidied away. So... $child = Fork() { some code to Sleep(20 mins); then Unlink(results DBM); } What if the client is still accessing the search results at 20 mins? I read through PerlDoc perlfork and it recommends not Kill()ing Children. Can my s

Re: using fork() in CGI script

2001-06-04 Thread Mike Miller
ant the > parent to print the message and exit, but the browser waits for the > child anyway... UGH... > >use strict; > use CGI qw(:all); >$|++; > >my $pid = fork; >if ($pid == 0) {# CHILD > sleep 30; > # Do stuff that ta

Re: using fork() in CGI script

2001-06-03 Thread Howdy!
- Original Message - From: "Mike Miller [EMAIL PROTECTED] X" > I have a CGI script which forks off a new process to perform lengthy > operations, and then uses the parent to display a short message in > the browser indicating that the process has begun. > > However, I'm fi

Re: using fork() in CGI script

2001-06-03 Thread Randal L. Schwartz
UGH... Mike>use strict; Mike>use CGI qw(:all); Mike>$|++; Mike>my $pid = fork; Mike>if ($pid == 0) {# CHILD close STDOUT; Mike> sleep 30; Mike> # Do stuff that takes a long time. Mike> exit; Mike>} Mike>p

using fork() in CGI script

2001-06-03 Thread Mike Miller
How can I stop this (or can I?) I want the parent to print the message and exit, but the browser waits for the child anyway... UGH... use strict; use CGI qw(:all); $|++; my $pid = fork; if ($pid == 0) {# CHILD sleep 30; # Do stuff that takes a long time.