Solved

CGI implementing Queue

Posted on 1997-11-14
2
184 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 50 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
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 dynamically set the form action using jQuery.

733 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