Solved

CGI implementing Queue

Posted on 1997-11-14
2
181 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 50 total points
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now