Re: fork() function in perl - a beginner's question

2004-07-15 Thread Gunnar Hjalmarsson
Gowthaman Ramasamy wrote: I have a lengthy Perl script running on a 4 processor machine. At one point of time i have to execute four shell commands / mysql quries from four different batch files. Currently i run them one after other. Can i use fork at this place so that i can fire all 4 mysql qurie

Re: fork function

2001-10-05 Thread Michael Fowler
On Fri, Oct 05, 2001 at 10:56:53AM +0200, walter valenti wrote: > i want make more connection HTTP "symoultaneus" (using LWP or SOCKET, is > the same). It's "simultaneous". :) > If i make a cicle with the request, the new request has made only where the > old request is closed > (close the so

Re: fork function

2001-10-05 Thread walter valenti
Hi, the example can be this: i want make more connection HTTP "symoultaneus" (using LWP or SOCKET, is the same). If i make a cicle with the request, the new request has made only where the old request is closed (close the socket) I.E for(;;){ &http; } sub http{ #sub that make the re

Re: fork function

2001-10-03 Thread Michael Fowler
On Wed, Oct 03, 2001 at 11:19:09AM +0200, walter valenti wrote: > i've some difficulty on the use of fork function. > I know that the fork function make a process child, but the i don't know > how write the code. Have you read perldoc -f fork and perldoc perlipc? What difficulty are you having?