On Mon, 3 Oct 2016 16:25:22 -0400
Uri Guttman wrote:
> > $text ="
> use here documents for long multiline strings like that. it is hard
> to find a close quote after so many lines.
You can also use the qq operator
$text = qq{
...
};
If your editor have matching-brace abilities, you can use t
On 10/03/2016 06:51 AM, Mike Martin wrote:
Hi
I have the below script (extracted pertinent bits).
The connection to the mail server times out if there is more than
about 10 lines of text (sometimes less)
i can't debug your email problem but there are several things you can do
to help yourself
Hi
I have the below script (extracted pertinent bits).
The connection to the mail server times out if there is more than
about 10 lines of text (sometimes less)
There is no issue with how many attachments I can send, so getting a bit stumped
Example below with specimen text (anonymised)
The bod
27;t there any other way?
On Wed, Sep 4, 2013 at 9:48 PM, jbiskofski <mailto:jbiskof...@gmail.com>> wrote:
You need to fix this in Apache not in your web-app. The setting is
called TimeOut in your httpd.conf - this is the number of seconds
Apache will wait before sending
Sorry I can't do that. Isn't there any other way?
On Wed, Sep 4, 2013 at 9:48 PM, jbiskofski wrote:
> You need to fix this in Apache not in your web-app. The setting is called
> TimeOut in your httpd.conf - this is the number of seconds Apache will wait
> before sending
You need to fix this in Apache not in your web-app. The setting is called
TimeOut in your httpd.conf - this is the number of seconds Apache will wait
before sending a timeout error and ending the request.
- Jose from Mexico.
On Wed, Sep 4, 2013 at 4:49 AM, Chankey Pathak wrote:
> In my
ments and
then use Archive::Zip to create Zip file. It works fine.
But if the user had selected a lot of documents then the create_zip
subroutine takes a lot of time, and if it takes more than 4 minutes (240
seconds) then apache timeout occurs causing the 503 error, but in the
backend the subro
I am using Parallel::ForkManager to run multiple ssh sessions on various remote
hosts. It is working fine.
Sometimes I have a problem: problem is in Net::OpenSSH module that, for
whatever reason, when far end does not respond the module does not close the
SSH connection (i.e. timeout is not
On Jun 17, 6:39 am, paragka...@gmail.com (Parag Kalra) wrote:
> Hi,
>
> I have a requirement where I want to wait for user to input the data.
>
> However if user doesn't input the data within certain period of time then it
> should timeout and move ahead.
There's
> -Original Message-
> From: Parag Kalra [mailto:paragka...@gmail.com]
> Sent: Friday, June 17, 2011 9:39 AM
> To: Perl Beginners
> Subject: Timeout for user input
>
> Hi,
>
> I have a requirement where I want to wait for user to input the data.
>
>
On Fri, Jun 17, 2011 at 10:39 AM, Parag Kalra wrote:
> Hi,
>
> I have a requirement where I want to wait for user to input the data.
>
> However if user doesn't input the data within certain period of time then
> it
> should timeout and move ahead.
>
> TIA
>
Hi,
I have a requirement where I want to wait for user to input the data.
However if user doesn't input the data within certain period of time then it
should timeout and move ahead.
TIA
~Parag
On Feb 3, 10:36 am, filip.sne...@gmail.com (Filip Sneppe) wrote:
> Hi,
>
> I am writing a script that executes external command that may hang.
> I want to capture all output produced by the external command and
> continue with my perl code after a certain execution timeout for
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;
> u
On Feb 3, 7:36 am, filip.sne...@gmail.com (Filip Sneppe) wrote:
> Hi,
>
> I am writing a script that executes external command that may hang.
> I want to capture all output produced by the external command and
> continue with my perl code after a certain execution timeout for
Hi,
I am writing a script that executes external command that may hang.
I want to capture all output produced by the external command and
continue with my perl code after a certain execution timeout for the
external program.
Since I am running the script on Windows, I cannot use any ALARM
On May 11, 9:29 pm, dery...@gmail.com ("C.DeRykus") wrote:
> On May 11, 12:56 am, weizhong@gmail.com (Weizhong Dai) wrote:
>
>> ...
>
> $pid = open(my $readme, "program arguments |")
> or die "Couldn't fork: $!\n";
--
>
> my problem is: I read from README, but if waiting for next input is
> timeout, end reading. Is there any timer or method I could use for
> this purpose?
>
> thanks.
perldoc -q timeout
perldoc perlipc
Here's an example with a 5 second timeou
: I read from README, but if waiting for next input is
> timeout, end reading. Is there any timer or method I could use for
> this purpose?
This code is probably better written as
my $program = ...;
my @arguments = ...;
my $pid = open( my $readme, '-|', $program, @arguments) or die &qu
y problem is: I read from README, but if waiting for next input is
> timeout, end reading. Is there any timer or method I could use for
> this purpose?
>
Just a reference:
http://www.perlmonks.org/?node_id=575284
--
Tech support agency in China
http://duxieweb.com/
--
To unsubscribe, e-m
Hi all,
-
$pid = open(README, "program arguments |") or die "Couldn't fork: $!\n";
while () {
# ...
}
close(README)
--
my problem is: I read from README, but if waiting for next input is
timeout,
On Oct 21, 8:31 am, jimsgib...@gmail.com (Jim Gibson) wrote:
> At 3:59 PM -0700 10/20/09, cerr wrote:
>
> >Hi,
>
> >I wanna execute an external bash command but timeout if it's taking
> >longer than XX seconds. I've tried it like this:
> >eval {
At 3:59 PM -0700 10/20/09, cerr wrote:
Hi,
I wanna execute an external bash command but timeout if it's taking
longer than XX seconds. I've tried it like this:
eval {
local $SIG{ALRM} = sub {die "alarm\n"};
alarm $timeout;
$test = `$sshpassPATH . &q
Hi,
I wanna execute an external bash command but timeout if it's taking
longer than XX seconds. I've tried it like this:
eval {
local $SIG{ALRM} = sub {die "alarm\n"};
alarm $timeout;
$test = `$sshpassPATH . " -p ".$clientpw."
, but those specs were written in a different age.
Bob McConnell
-Original Message-
From: Jeff Pang [mailto:hostmas...@duxieweb.com]
Sent: Thursday, April 02, 2009 8:23 AM
To: Chas. Owens
Cc: beginners@perl.org
Subject: RE: default timeout for IO::Socket::INET
oh will be trying to connect to
oh will be trying to connect to the remote host forever until it gets
successed?
that sounds not reasonable.thanks.
> Original Message
> Subject: Re: default timeout for IO::Socket::INET
> From: "Chas. Owens"
> Date: Thu, April 02, 2009 5:19 am
> To: J
On Thu, Apr 2, 2009 at 08:11, Jeff Pang wrote:
> I checked perldoc documents but didn't find a default timeout value for
> IO::Socket::INET object.
> Who knows that? thanks.
snip
Based on my reading of the code it looks like it doesn't timeout by default.
--
Chas. Owens
w
I checked perldoc documents but didn't find a default timeout value for
IO::Socket::INET object.
Who knows that? thanks.
regards,
Jeff.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Tom Phoenix
> Sent: Tuesday, December 11, 2007 15:07
> To: Wagner, David --- Senior Programmer Analyst --- WGO
> Cc: beginners@perl.org
> Subject: Re: timeout in ftp
>
>
On 12/11/07, Wagner, David --- Senior Programmer Analyst --- WGO
<[EMAIL PROTECTED]> wrote:
> I have the following code:
>
> $MyFTP->put($MyFtpFromFile , $MyFtpToFile );
> if ( ! $MyFTP->ok() ) {
Are you using Net::FTP? Does your version of the documentation for
Net::FTP mention an ok
I have the following code:
$MyFTP->put($MyFtpFromFile , $MyFtpToFile );
if ( ! $MyFTP->ok() ) {
.
}
On my audit log:
Net::FTP=GLOB(0x19c30c0)<<< 125-Waiting for recall of data set
FTPTRGP.AMPD0407
Net::FTP=GLOB(0x19c30c0): Timeout
On 9/25/07, Tom Phoenix <[EMAIL PROTECTED]> wrote:
> On 9/25/07, yitzle <[EMAIL PROTECTED]> wrote:
>
> > When a connection timeout occurs, "the library disconnects and creates
> > an internal timeout response" [1]. This then exits my script.
> > I
On 9/25/07, yitzle <[EMAIL PROTECTED]> wrote:
> When a connection timeout occurs, "the library disconnects and creates
> an internal timeout response" [1]. This then exits my script.
> Is there a way to change what occurs on timeout?
This sounds like an advanced LWP iss
When a connection timeout occurs, "the library disconnects and creates
an internal timeout response" [1]. This then exits my script.
Is there a way to change what occurs on timeout?
[1] http://search.cpan.org/~gaas/libwww-perl-5.808/lib/LWP.pm
--
To unsubscribe, e-mail: [EMAIL PROT
LocalAddr => xxx.xxx.xxx.xxx,
>LocalPort => ,
>Listen=> SOMAXCONN,
>Proto => 'tcp',
>Reuse =
Listen=> SOMAXCONN,
Proto => 'tcp',
Reuse => 1,
Timeout => 30,
);
This socket server was bind
I currently have written a socket script that creates a socket connection
to a remote socket. Passes some values, and the remote script then takes
those values and passes them to a system() call.
The local script then waits for the remote script to send a response back.
Since the local script has
I wrote a script to run a few select queries from a database using the DBI
module. The script works, but occasionally times out and either the query
results are truncated, or I get 'The page cannot be displayed'.
Is there a timeout parameter somewhere that I could increase in Apache, o
]
Subject: mysql timeout
Hi all,
maybe this is not perl related, but I am not sure. I'm connecting to mysql,
and after I'm executing some queries. Sometimes - when query is too
complicated, or I start second complicated query, I get:
DBD::mysql::st execute failed: Lost connection to My
at...
Do you know how to set up this timeout ? I also looked at mysql
documentation, but I found nothing what helps.
Thanks
--
--. ,-- ,- ICQ: 7552083 \|||/`//EB: www.2ge.us
,--' | - |--IRC: [2ge](. .),\\SN: 2ge!2ge_us
`+==+=+===~ ~==
7;;
> my $port=shift @ARGV or die 'need port number';
> my [EMAIL PROTECTED] or die 'need timeout';;
I think you want
my $timeout = shift @ARGV or die 'need timeout';
here...otherwise you set $timeout to the number of arguments left in @ARGV,
which i
Hi All,
I have the following script:
#!/usr/bin/perl
use IO::Socket;
my $host=shift @ARGV or die 'need hostname';
my $port=shift @ARGV or die 'need port number';
my [EMAIL PROTECTED] or die 'need timeout';;
my $socket=IO::Socket::INET->new(PeerAddr=> $host,
On Dec 26, 2003, at 10:56 AM, glidden, matthew wrote:
In my current script, I'm polling machines for data, mostly by using
rsh and
the backtick. For example:
my $retVal = `rsh $hostname -l root "/usr/local/blah"`;
I'd like the backticks to timeout at 30 seconds, to preve
glidden, matthew wrote:
In my current script, I'm polling machines for data, mostly by using rsh and
the backtick. For example:
my $retVal = `rsh $hostname -l root "/usr/local/blah"`;
I'd like the backticks to timeout at 30 seconds, to prevent getting stuck. I
already added a
glidden, matthew wrote:
In my current script, I'm polling machines for data, mostly by using rsh and
the backtick. For example:
my $retVal = `rsh $hostname -l root "/usr/local/blah"`;
I'd like the backticks to timeout at 30 seconds, to prevent getting stuck. I
already added a
In my current script, I'm polling machines for data, mostly by using rsh and
the backtick. For example:
my $retVal = `rsh $hostname -l root "/usr/local/blah"`;
I'd like the backticks to timeout at 30 seconds, to prevent getting stuck. I
already added a ping test before the c
Aman Thind wrote:
>
> As it turned out there was some problem with the file I was trying to
> transfer.
> I could not transfer it even using an ftp client.
> The ftp client also aborts with a time out.
>
> Another question.
> How can I use the *Resume* facility provided by an ftp server???
> Curr
-
From: Dan Muey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 8:06 PM
To: Aman Thind; [EMAIL PROTECTED]
Subject: RE: Timeout at C:/Perl/lib/Net/FTP.pm line 741
What are the parameteres that are different and which are the same?
Is then one ftp server set to timeout after xx amount
What are the parameteres that are different and which are the same?
Is then one ftp server set to timeout after xx amount of seconds?
The message means ( not a dictionary definition ) basically that the server hasn't
seen aby action for a specified period of time and said good bye to your s
Hi all ,
I have currently two ftp uploads being made from my machine.
I am using the Net::FTP for the recursive transfer of product builds to
germany.
While one script is successfully transferring, the other is aborting with
the following error :
Timeout at C:/Perl/lib/Net/FTP.pm line 741
Hello List,
I am trying to a write a simple subroutine in perl to take a command as
argument, execute the command, if the command does not complete with in
specified timeout interval, kill the process. If the program get completed
within timeout interval, then return its output to the calling
> -Original Message-
> From: jeff loetel [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 22, 2002 9:01 AM
> To: Perl beginners
> Subject: eval and alarm timeout for slow process (XML post)
>
>
> Does this look correct below. I know that I should test but
connection or a server down. I am using LWP and set the
timeout feature but it never really seemed to catch the situation.
Any feedback is welcome.
eval {
local $SIG{ALRM} = sub { die "timeout\n" };
alarm (60); # 60 sec. timeout
On Apr 8, Darren Edgerton said:
>i want to set a timer around a system command, so that IF the command runs
>longer than x seconds
>
>$maxtime=60;# 60 seconds
>system("some_command_that_takes_longer_than_60secs");
Here's how I'd do it:
{
local $SIG{ALRM} = \&send_email;
alarm
Try the alarm function.
Tor.
Darren Edgerton wrote:
>
> Hi,
>
> i want to set a timer around a system command, so that IF the command runs
> longer than x seconds
> send email to the sysadmin
> Note: i *DO NOT* want to kill the process - simply want to send a warning
> that it is taking longe
Hi,
i want to set a timer around a system command, so that IF the command runs
longer than x seconds
send email to the sysadmin
Note: i *DO NOT* want to kill the process - simply want to send a warning
that it is taking longer
than expected
ie
$maxtime=60;# 60 seconds
system("some_comman
From: [EMAIL PROTECTED]
> Where in the Sender.pm file can I find the parameter for
> timeout to the mail server? I need to increase this. I
> keep getting a cannot connect error.
>
> Thanks
>
> Grant
Sorry, there is no such parameter. I'm
Where in the Sender.pm file can I find the parameter for
timeout to the mail server? I need to increase this. I
keep getting a cannot connect error.
Thanks
Grant
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
, 2002 12:58 PM
To: [EMAIL PROTECTED]
Subject: Timeout issue using the Perl NET cmd method
request for help. I am having the following problem with a test script.
I issue the stmt: @lines = $t->cmd("who");
And my script times out at that statement.
I have the Dump_Log turned on. I ca
request for help. I am having the following problem with a test script.
I issue the stmt: @lines = $t->cmd("who");
And my script times out at that statement.
I have the Dump_Log turned on. I can see that my command executes
successfully on the remote host. But, I want to finish the remaining
st
new(PeerAddr => $server_name,Proto
=>"tcp",PeerPort => 25,Type =>SOCK_STREAM, Timeout => 30)
It looks like the timeout parameter does not work. My script can be frozen
by one server for days, never return to me.
Any suggestion will be highly appreciated.
Many thanks,
Jeff L
Hi all,
I am working on a script to open smtp port connection. Somehow, I get
problem to setup the timeout, my script just stuck for 5 or maybe 10 minutes
before come back. Does anybody know a way to setup a shorter timeout while
connecting, like 20 seconds? The following does not work for me
what code/modules are you using?
and try:
perldoc THATMODULE
first please
hth
Jos
- Original Message -
From: "Rahul Garg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 19, 2001 12:27 PM
Subject: timeout problem
Well, I am getting th
Well, I am getting the html pages from site.
well while getting the pages ,sometimes i get Timeout.if the server response or
speed is slow..how can i increase the
timeout time...is there any function for it in perl or any help/suggestions...
At 11:02 AM 8/16/01 -0500, Tyler Longren wrote:
>Hello list,
>
>How should I go about setting a timeout for a section of code? I've
>written some code to do a whois on a few hosts. Sometimes, it stay's on
>one host for a few minutes, trying to connect to the whois s
Hello list,
How should I go about setting a timeout for a section of code? I've
written some code to do a whois on a few hosts. Sometimes, it stay's on
one host for a few minutes, trying to connect to the whois server.
Here's the code:
foreach my $h(@list) {
my $res
66 matches
Mail list logo