Solved

script timeout

Posted on 2000-02-17
1
173 Views
Last Modified: 2010-03-05
On my website, i have a perlscript that needs to run for 5 minutes instead of al the other scripts' 60 seconds.

I know this can be set in apache or something, but this script is an exception and i would like it that only this one gets five minutes before being terminated.

usually I make my sites in Active Server Pages, and one cat set this property in the script using

scripting.timeout = 300

(for five minutes)

how can this be achieved in perl?
0
Comment
Question by:heit
1 Comment
 
LVL 1

Accepted Solution

by:
chytrace earned 50 total points
ID: 2531269
You could try the follwing on Perl's side:

$SIG{ALRM} = sub { die "alarm\n"; exit; };

alarm 300;

while( 1 ) {
  print "Hello World!\n";  
}

0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
delete query using perl dbi 3 101
Shell script to bind my job to half the number of vCPUs in Solaris 8 117
Perl script to delete older files 6 87
Perl Untar File 1 44
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question