Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CGI implementing Queue

Posted on 1997-11-14
2
Medium Priority
?
186 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Docker-Compose to Simplify Multi-Container Builds

Our veteran DevOps Author takes you through how to build a multi-container environment, managed with a single utility in order to simplify your deployments.

Question has a verified solution.

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

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The viewer will learn how to dynamically set the form action using jQuery.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

661 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