RE: Excessive wait time after fork

2011-04-06 Thread TAO, NENGBING [AG/1005]
- From: TAO, NENGBING [AG/1005] Sent: Saturday, April 02, 2011 11:07 AM To: 'beginners-digest-h...@perl.org'; beginners@perl.org Subject: Excessive wait time after fork Hi, I noticed that after fork, the wait time is excessive (my other test waited for hours). Is this a known

RE: Excessive wait time after fork

2011-04-06 Thread TAO, NENGBING [AG/1005]
id show that less than half of the total memory is used. So I don't believe the server is swamped. Thanks -Original Message- From: Chas. Owens [mailto:chas.ow...@gmail.com] Sent: Monday, April 04, 2011 6:40 AM To: TAO, NENGBING [AG/1005] Cc: beginners-digest-h...@perl.org; begi

Re: Excessive wait time after fork

2011-04-04 Thread Chas. Owens
On Sat, Apr 2, 2011 at 12:06, TAO, NENGBING [AG/1005] wrote: > Hi, > >        I noticed that after fork, the wait time is excessive (my other > test waited for hours). Is this a known problem, how to get around it? snip > child 3 AFTER  sub call :Sat Apr  2 10:45:01 2011 numKeys:40

Excessive wait time after fork

2011-04-04 Thread TAO, NENGBING [AG/1005]
Hi, I noticed that after fork, the wait time is excessive (my other test waited for hours). Is this a known problem, how to get around it? This happens with ForkManager module also. Any pointers on what's going on is appreciated!

Re: Win32::Job, wait until timeout, but capture all output

2011-03-11 Thread Catherine Bundy
ndef, "iscsicli.exe", (), { stdout => "$$.output.txt" } ); > > but this creates an empty file, I think because of a lack of > autoflushing > > - tried to redirect STDOUT to a variable before calling the > spawn() funtion, and enabling autoflush. Doesn't do

Re: Win32::Job, wait until timeout, but capture all output

2011-02-17 Thread Filip Sneppe
Hi, On Fri, Feb 4, 2011 at 9:23 PM, C.DeRykus wrote: > > Not particularly elegant since output is sent  to a file > via backticks but I succeeded in getting test program > output that occurs prior  to a 3 second timeout, eg: > >    use strict; >    use warnings; >    use Win32::Job; > >    my $j

Re: Win32::Job, wait until timeout, but capture all output

2011-02-04 Thread C.DeRykus
ndef, "iscsicli.exe", (), { stdout => "$$.output.txt" } ); > > but this creates an empty file, I think because of a lack of > autoflushing > > - tried to redirect STDOUT to a variable before calling the > spawn() funtion, and enabling autoflush. Doesn't do

Win32::Job, wait until timeout, but capture all output

2011-02-03 Thread Filip Sneppe
the spawn() funtion, and enabling autoflush. Doesn't do the trick either, and I don't know how to reset STDOUT to the default afterwards. Could anyone please provide a working piece of code that can execute an external command, wait for it to finish yet kill the command if it takes too lon

Re: wait for file creation and wait

2008-11-26 Thread Deviloper
er 2008 um 16:20 geschrieben: > On Wed, 2008-11-26 at 20:31 +0530, Sharan Basappa wrote: > > Hi, > > > > I am writing a scheduler for some proprietary task. > > There are two questions pertaining to this > > > > 1) I have to wait for creation of a file by some

Re: wait for file creation and wait

2008-11-26 Thread Chas. Owens
On Wed, Nov 26, 2008 at 10:01, Sharan Basappa <[EMAIL PROTECTED]> wrote: > Hi, > > I am writing a scheduler for some proprietary task. > There are two questions pertaining to this > > 1) I have to wait for creation of a file by some external process. How > do I do tha

Re: wait for file creation and wait

2008-11-26 Thread Mr. Shawn H. Corey
On Wed, 2008-11-26 at 20:31 +0530, Sharan Basappa wrote: > Hi, > > I am writing a scheduler for some proprietary task. > There are two questions pertaining to this > > 1) I have to wait for creation of a file by some external process. How > do I do that in perl? > In oth

wait for file creation and wait

2008-11-26 Thread Sharan Basappa
Hi, I am writing a scheduler for some proprietary task. There are two questions pertaining to this 1) I have to wait for creation of a file by some external process. How do I do that in perl? In other words, is it possible to list out the files in perl? 2) If file is not created then I have to

Re: simple tcp socket server:Is it possible, server wait for '!' sign, not '\n'?

2007-06-18 Thread Max Rodkin
Thanks to all! Scrip did work fine. Here is: [EMAIL PROTECTED]:/home# cat gsserver.pl #!/usr/bin/perl -w use IO::Socket; use DBI; $dbname="xxx"; $user="xxx"; $pass="xxx"; $dbh = DBI->connect("DBI:mysql:database=$dbname;host=localhost;user=$user;password=$pass",{'RaiseError' => 1}); my $PORT = 50

Re: simple tcp socket server:Is it possible, server wait for '!' sign, not '\n'?

2007-06-10 Thread Mumia W.
On 06/09/2007 09:44 PM, yitzle wrote: [...] If Perl.org wasn't down, you'd want http://perldoc.perl.org/perlvar.html I guess perldoc perlvar will have to do. [...] For the time being, I've placed some of the Perl docs onto my website: http://home.earthlink.net/~mumia.w.18.spam/perldoc/ http://

Re: simple tcp socket server:Is it possible, server wait for '!' sign, not '\n'?

2007-06-09 Thread yitzle
ssible, server wait for '!' sign, not '\n'? If Perl.org wasn't down, you'd want http://perldoc.perl.org/perlvar.html I guess perldoc perlvar will have to do. Simply set $/ to "!" Or read the doc and look for $/ -- To unsubscribe, e-mail: [EMAIL PROT

simple tcp socket server:Is it possible, server wait for '!' sign, not '\n'?

2007-06-09 Thread Max Rodkin
Hi all, i need write script to get string like $355632000166323,1,1,040202,093633,E12129.2252,N2459.8891,00161,0.0100,147,07*37! from TCP client. All is fine if client send ENTER after string, but this string have no CR/LF at end. Is it possible, server wait for '!' sign, not 

Re: wait time

2007-04-05 Thread Jeff Pang
> >is there any function i can use to add some seconds of delay in my >program?? Yes,like all other program languages,you can use "sleep" for the delay. see "perldoc -f sleep". if you want to get a sleep of milliseconds,you can use the four arguments version "select",like: # sleep of 250 milli

Re: wait time

2007-04-04 Thread Nilesh Patil
You can use "sleep". On Thursday 05 April 2007 06:03, Brandino Andreas wrote: Hi all, is there any function i can use to add some seconds of delay in my program?? Thanks <> --- --- --- <> Brandino Andreas [EMAIL PROTECTED] <> --- --- --- <> -- Regards, Nil

wait time

2007-04-04 Thread Brandino Andreas
Hi all, is there any function i can use to add some seconds of delay in my program?? Thanks <> --- --- --- <> Brandino Andreas [EMAIL PROTECTED] <> --- --- --- <> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] h

RE: parent / child PID / wait q

2006-04-19 Thread Henry, Mark Patrick
Joshua, Thanks for the advice. While this may be true, the complexity of setting up such a solution is far beyond my abilities and time right now. Also, this is more of a generic IPC type question as I could apply a wait/pid solution in a number of more localised scenarios. Thanks! -M

Re: parent / child PID / wait q

2006-04-18 Thread Chas Owens
On 4/17/06, Henry, Mark Patrick <[EMAIL PROTECTED]> wrote: snip > Seems like what I want is something along the lines of fork / > child_pids, and 'wait'. snip Yep, that is what you want. snip > If I launch multiple jobs up to max_machines as it were, and use 'wait&#

Re: parent / child PID / wait q

2006-04-18 Thread Joshua Colson
nched as many jobs as I have machines, wait until one > completes and send that machine another job, and so as others free up > until no more jobs. > > Seems like what I want is something along the lines of fork / > child_pids, and 'wait'. > If you want to be runn

parent / child PID / wait q

2006-04-18 Thread Henry, Mark Patrick
Hi All, Hope this isn't off-topic.. I want to: *invoke multiple sub-jobs from a script, limited by the amount of computers I have available/can send those jobs to. *when I've launched as many jobs as I have machines, wait until one completes and send that machine another job, and so

Re: problem with fork & wait

2004-03-29 Thread Smoot Carl-Mitchell
On Mon, 29 Mar 2004 18:38:48 +0530 "T.S. Ravi Shankar" <[EMAIL PROTECTED]> wrote: > At reaching a certain point in my perl program, I need to run a > process( say XYZ ) using SYSTEM command. The result file that this > process would produce will be result.. I will

RE: problem with fork & wait

2004-03-29 Thread Bob Showalter
T.S. Ravi Shankar wrote: > Hi, > > At reaching a certain point in my perl program, I need to run a > process ( say XYZ ) using SYSTEM command. The result file that this > process would produce will be result.. I will have to > wait until this result file is produced & t

problem with fork & wait

2004-03-29 Thread T.S. Ravi Shankar
Hi, At reaching a certain point in my perl program, I need to run a process ( say XYZ ) using SYSTEM command. The result file that this process would produce will be result.. I will have to wait until this result file is produced & then proceed extracting certain things from this file.

RE: Please wait while I get your data ...

2003-12-18 Thread Bob Showalter
Mallik wrote: > Hi Bill, > > We are also looking for the same solution > > My problem is, I have to fetch data from tbe database > and display it on browser. The datbase is very huge. > It is taking more time to query the data. Mean while > timeout error is occuring on the browser. > > So, we ar

Please wait while I get your data ...

2003-12-18 Thread Mallik
solution you are looking for. If you find any, pl. forward us. NOTE: Database is Informix and we are using Perl CGI. Thanks, Mallik. -Original Message- From: Bill McCormick [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 9:42 PM To: Cgiapp Subject: [cgiapp] Please wait while I get

RE: fork & wait

2003-08-25 Thread Bob Showalter
T.S.Ravi Shankar wrote: > Dear all : > > I see these lines in a perl program : > > $pif = fork; > if($pid == 0) { > exec("hpxy -s xxx.abc"); > }else{ > $pid1=wait; > } > > I could understand that the fork is needed here to get into the chil

fork & wait

2003-08-25 Thread T.S.Ravi Shankar
Dear all : I see these lines in a perl program : $pif = fork; if($pid == 0) { exec("hpxy -s xxx.abc"); }else{ $pid1=wait; } I could understand that the fork is needed here to get into the child process "hpxy" !! What is the need for the "wait" here ??

WAIT server missing?

2002-08-13 Thread Tom Allison
ls6.informatik.uni-dortmund.de:1404 No response from server Does WAIT have any mirros/alternatives? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: How do you put a delay/pause/wait in Perl?

2002-08-13 Thread Hughes, James
PROTECTED] Betreff: How do you put a delay/pause/wait in Perl? I've searched online, but it's difficult when I have no idea what the command is. I want to have a script execute, but if a condition is not met, for it to wait five minutes and try again. I would prefer to do this wit

Re: How do you put a delay/pause/wait in Perl?

2002-08-13 Thread sl003b0462
sleep (seconds); - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 13, 2002 5:40 PM Subject: How do you put a delay/pause/wait in Perl? I've searched online, but it's difficult when I have no idea what the command i

Re: How do you put a delay/pause/wait in Perl?

2002-08-13 Thread Morten Liebach
On 2002-08-13 12:40:32 -0400, [EMAIL PROTECTED] wrote: > I've searched online, but it's difficult when I have no idea what the > command is. > > I want to have a script execute, but if a condition is not met, for it to > wait five minutes and try again. I would prefer

RE: How do you put a delay/pause/wait in Perl?

2002-08-13 Thread Sylvanie, Jean-Pierre
this could help : perldoc -f sleep jp. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 12:41 PM To: [EMAIL PROTECTED] Subject: How do you put a delay/pause/wait in Perl? I've searched online, but it's difficult when I ha

How do you put a delay/pause/wait in Perl?

2002-08-13 Thread [EMAIL PROTECTED]
I've searched online, but it's difficult when I have no idea what the command is. I want to have a script execute, but if a condition is not met, for it to wait five minutes and try again. I would prefer to do this without using a 'while' loop, because I don't know

Re: Wait

2002-07-16 Thread Carson Wilcox
Try sleep('# seconds'); Carson -- Original Message -- From: Francesco Guglielmo <[EMAIL PROTECTED]> Date: Tue, 16 Jul 2002 14:18:58 +0200 >How can I say to my script to wait some seconds before continuing? > > >-- >

Re: Wait

2002-07-16 Thread Felix Geerinckx
on Tue, 16 Jul 2002 12:18:58 GMT, Francesco Guglielmo wrote: > How can I say to my script to wait some seconds before continuing? sleep($number_of_seconds); See perldoc -f sleep -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Wait

2002-07-16 Thread Francesco Guglielmo
How can I say to my script to wait some seconds before continuing? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: fork() with no wait()

2002-04-01 Thread Chas Owens
On Mon, 2002-04-01 at 14:42, Rob Lee wrote: > > I'd like to fork my program without waiting for the child to exit. > > My child will be a sub with an infinite loop, so I'd like the parent to > continue on it's merry way. > > Solutions? > -R If you "fork" without ever waiting on your chil­ dr

Re: fork() with no wait()

2002-04-01 Thread Rob Lee
The beginner shines in me... For reaping children, I was thinking of send a signal to the entire group. The gist is: I want to attach a child to a FIFO, then have the parent start other processes that read from the FIFO. The readers must be tricked into thinking they are reading from files.

fork() with no wait()

2002-04-01 Thread Rob Lee
I'd like to fork my program without waiting for the child to exit. My child will be a sub with an infinite loop, so I'd like the parent to continue on it's merry way. Solutions? -R -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How can my script wait a moment before going to another URL?

2002-02-05 Thread Jenda Krynicky
ete. If it doesnt in your case and you happen to run the script on windows you'll probably want to consider either system("start /wait TheProgram"); or use Win32::Process; ... Jenda === [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == The

Re: How can my script wait a moment before going to another URL?

2002-02-05 Thread Jan Gruber
Hi ! > system(".."); #(it takes quite a while) > Location: URL > > How can I let system() finish its work and then go to > the URL? AFAIR, system() won't return unless it is finished or the process has been killed. So you wont need an additional sleep() command. HTH, -- Jan Gruber

How can my script wait a moment before going to another URL?

2002-02-05 Thread li jidong
Here's it: system(".."); #(it takes quite a while) Location: URL How can I let system() finish its work and then go to the URL? Thanks __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To

RE: Help request for backup perl script - how to make it wait

2001-08-21 Thread Gary L. Armstrong
OK, I have been reading the Learning Perl book but I think I know this one. The system() function should wait for the process to finish before moving on (read this a couple days ago, might be misremembering it) but for really fine control you can use the fork() then exec(), and maybe throw in a

How to make a process wait for sometime

2001-07-10 Thread Suresh Babu.A [Support]
Hi, I am using a FTP session in my perl script and i want to update the time taken by the process. But i feel that there may be problem with the code. thanks for any help you can provide... Code -- > == $sd=`date +%m/%d/%Y`; $st=`date +%H:%M:%S`; print FTP "b

Re: how to wait 50 second ?

2001-06-01 Thread rob chanter
On Fri, Jun 01, 2001 at 01:53:17PM +0200, [EMAIL PROTECTED] wrote: > Hi, > > Is it possible to use a commando in Perl that will wait for example 50 > seconds an then will continue ? > sleep 50; That's assuming you meant "command"; a commando could probably do

Re: how to wait 50 second ?

2001-06-01 Thread Brett W. McCoy
On Fri, 1 Jun 2001 [EMAIL PROTECTED] wrote: > Is it possible to use a commando in Perl that will wait for example 50 > seconds an then will continue ? sleep(50); See the perldoc on sleep for more details on it. -- Brett Brett W. McCoy Software Engineer Broadsoft, Inc. 240-364-5225

Re: how to wait 50 second ?

2001-06-01 Thread Walt Mankowski
On Fri, Jun 01, 2001 at 01:53:17PM +0200, [EMAIL PROTECTED] wrote: > Is it possible to use a commando in Perl that will wait for example 50 > seconds an then will continue ? Yes -- sleep(50) See perldoc -f sleep for more information. Walt

Re: how to wait 50 second ?

2001-06-01 Thread Kevin Meltzer
Hi Michiel, Look at sleep() perldoc -f sleep Cheers, Kevin On Fri, Jun 01, 2001 at 01:53:17PM +0200, [EMAIL PROTECTED] ([EMAIL PROTECTED]) spew-ed forth: > Hi, > > Is it possible to use a commando in Perl that will wait for example 50 > seconds an then will continue ? &g

RE: how to wait 50 second ?

2001-06-01 Thread Hill, Ronald
Hi, Is it possible to use a commando in Perl that will wait for example 50 seconds an then will continue ? Thanks in advance [snipped] take a look at the sleep command sleep EXPR sleep Causes the script to sleep for EXPR seconds, or forever if no EXPR. May be

how to wait 50 second ?

2001-06-01 Thread michiel
Hi, Is it possible to use a commando in Perl that will wait for example 50 seconds an then will continue ? Thanks in advance Michiel von der Crone Support Engineer Email : [EMAIL PROTECTED] OMNIS SOURCE