-
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
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
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
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!
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
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
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
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
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
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
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
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
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
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://
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
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
>
>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
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
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
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
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
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
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
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
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
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.
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
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
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
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 ??
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]
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
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
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
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
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
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?
>
>
>--
>
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
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]
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
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.
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]
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
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
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
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
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
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
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
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
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
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
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
53 matches
Mail list logo