How to use threads?

V

veg_all

Once a day my perl cgi script tars and zips up the customer data and
ftps it to a backup server. The script takes around 10 seconds to do
this but normally runs in less than a second. Is there a way I can use
threads to do the tarring and ftping parallel with the main script
execution?

I read perlthrtut but my perl installation does not seem to support the
functionality in it. Is there any workaround besides upgrading the perl
installation?
 
P

pyh

Hello,

You don't need threads here.Just fork the childs and call the 'exec' to do
the additional works in your CGI answers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,787
Messages
2,569,630
Members
45,338
Latest member
41Pearline46

Latest Threads

Top