Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CGI implementing Queue

Posted on 1997-11-14
2
Medium Priority
?
187 Views
Last Modified: 2013-12-25
Hi,
I am fairly to perl scripting and I would appreciate some help.
I am looking for a way to implemet a perl 5 script in win95 enviroment that will act like cron in Unix. I need a script that will run every so often and do something. Is there any way to do it in win95?
The idea behind this is:
I need to set-up a queue system on a win32 based web server with perl 5.
The idea is this:

* Users send a form with a requset for a job to be executed.
* The submit button tells them that it will be done and add the request at the botton of a queue file.
* A perl 5 script that runs continusly checks every so often if the status of the equipment that will do the request is ok and if yes then it executes the job on the top of the queue file and delete it.

The main question is regarding the script that will periodicaly do the checking. How can this be implemented in perl in win95?

Also any better ideas than the file based queue?
0
Comment
Question by:dokimos
2 Comments
 
LVL 7

Accepted Solution

by:
faster earned 100 total points
ID: 1831174
You can simply use a loop and put a sleep() inside it.

For example:

while (1)  {
  ; your checking routine
  sleep(nSeconds);
}

You can arrange some condition under which the loop will exit.
0
 

Author Comment

by:dokimos
ID: 1831175
This is the method I though as well. I was really looking for anything more elaborate, possibly using less resourses, than a continous loop.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

876 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