Re: Email Sender timeout with more than two paragraphs of text in body

2016-10-03 Thread Shawn H Corey
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

Re: Email Sender timeout with more than two paragraphs of text in body

2016-10-03 Thread Uri Guttman
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

Email Sender timeout with more than two paragraphs of text in body

2016-10-03 Thread Mike Martin
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

Re: Dealing with apache timeout in Perl

2013-09-04 Thread Michael Brader
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

Re: Dealing with apache timeout in Perl

2013-09-04 Thread Chankey Pathak
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

Re: Dealing with apache timeout in Perl

2013-09-04 Thread jbiskofski
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

Dealing with apache timeout in Perl

2013-09-04 Thread Chankey Pathak
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

Parallel::ForkManager and Net::OpenSSH to handle timeout

2012-10-15 Thread Rajeev Prasad
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

Re: Timeout for user input

2011-06-17 Thread C.DeRykus
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

RE: Timeout for user input

2011-06-17 Thread Ken Slater
> -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. > >

Re: Timeout for user input

2011-06-17 Thread Brian Fraser
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 >

Timeout for user input

2011-06-17 Thread Parag Kalra
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

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

2011-03-11 Thread Catherine Bundy
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

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; >    u

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

2011-02-04 Thread C.DeRykus
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

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

2011-02-03 Thread Filip Sneppe
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

Re: fork, read from child process and timeout

2010-05-13 Thread C.DeRykus
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";

Re: fork, read from child process and timeout

2010-05-12 Thread C.DeRykus
-- > > 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

AW: fork, read from child process and timeout

2010-05-11 Thread Thomas Bätzler
: 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

Re: fork, read from child process and timeout

2010-05-11 Thread Jeff Pang
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

fork, read from child process and timeout

2010-05-11 Thread Weizhong Dai
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,

Re: lettinf an external basgh command timeout inside eval

2009-10-22 Thread cerr
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 {

Re: lettinf an external basgh command timeout inside eval

2009-10-21 Thread Jim Gibson
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

lettinf an external basgh command timeout inside eval

2009-10-21 Thread cerr
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."

RE: default timeout for IO::Socket::INET

2009-04-02 Thread Bob McConnell
, 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

RE: default timeout for IO::Socket::INET

2009-04-02 Thread Jeff Pang
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

Re: default timeout for IO::Socket::INET

2009-04-02 Thread Chas. Owens
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

default timeout for IO::Socket::INET

2009-04-02 Thread Jeff Pang
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/

RE: timeout in ftp

2007-12-11 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -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 > >

Re: timeout in ftp

2007-12-11 Thread Tom Phoenix
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

timeout in ftp

2007-12-11 Thread Wagner, David --- Senior Programmer Analyst --- WGO
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

Re: LWP - Catching connection timeout

2007-09-25 Thread yitzle
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

Re: LWP - Catching connection timeout

2007-09-25 Thread Tom Phoenix
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

LWP - Catching connection timeout

2007-09-25 Thread yitzle
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

Re: A question about Timeout

2007-04-17 Thread Owen
LocalAddr => xxx.xxx.xxx.xxx, >LocalPort => , >Listen=> SOMAXCONN, >Proto => 'tcp', >Reuse =

A question about Timeout

2007-04-15 Thread Jeff Pang
Listen=> SOMAXCONN, Proto => 'tcp', Reuse => 1, Timeout => 30, ); This socket server was bind

Timeout value for a socket?

2005-12-05 Thread Scott
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

use DBI; connection timeout

2005-01-11 Thread Paul Ohashi
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

RE: mysql timeout

2004-12-06 Thread Graeme St. Clair
] 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

mysql timeout

2004-12-06 Thread Ing. Branislav Gerzo
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 `+==+=+===~ ~==

Re: Timeout problem

2004-07-06 Thread Philipp Traeder
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

Timeout problem

2004-07-06 Thread Werner Otto
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,

Re: Timeout for backtick and rsh?

2003-12-29 Thread drieux
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

Re: Timeout for backtick and rsh?

2003-12-27 Thread Wiggins d'Anconia
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

Re: Timeout for backtick and rsh?

2003-12-27 Thread Wiggins d'Anconia
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

Timeout for backtick and rsh?

2003-12-26 Thread glidden, matthew
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

Re: Q : How to resume an ftp session + RE: Timeout at C:/Perl/lib/Net /FTP.pm line 741

2003-01-07 Thread John W. Krahn
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

Q : How to resume an ftp session + RE: Timeout at C:/Perl/lib/Net /FTP.pm line 741

2003-01-07 Thread Aman Thind
- 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

RE: Timeout at C:/Perl/lib/Net/FTP.pm line 741

2003-01-07 Thread Dan Muey
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

Timeout at C:/Perl/lib/Net/FTP.pm line 741

2003-01-07 Thread Aman Thind
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

command execution & timeout in Windows

2002-12-05 Thread Venkatesan.Saranatha
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

RE: eval and alarm timeout for slow process (XML post)

2002-11-22 Thread NYIMI Jose (BMB)
> -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

eval and alarm timeout for slow process (XML post)

2002-11-21 Thread jeff loetel
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

Re: Timeout a system command

2002-04-07 Thread Jeff 'japhy' Pinyan
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

Re: Timeout a system command

2002-04-07 Thread victor
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

Timeout a system command

2002-04-07 Thread Darren Edgerton
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

Re: Mail::Sender Timeout

2002-03-13 Thread Jenda Krynicky
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

Mail::Sender Timeout

2002-03-13 Thread gkhgkh
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]

FW: Timeout issue using the Perl NET cmd method

2002-02-21 Thread Bill Barrett
, 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

Timeout issue using the Perl NET cmd method

2002-02-21 Thread Bill Barrett
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

socket connection timeout problem

2002-01-03 Thread Jeff Liu
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

A socket timeout question

2001-12-27 Thread Jeff Liu
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

Re: timeout problem

2001-09-19 Thread Jos I. Boumans
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

timeout problem

2001-09-19 Thread Rahul Garg
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...

Re: timeout

2001-08-17 Thread Peter Scott
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

timeout

2001-08-16 Thread Tyler Longren
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