Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Timed Scripts in Virtual Domains

Status
Not open for further replies.

millimeter

Programmer
Mar 30, 2002
12
US
Greetings,

I am an ammeter Perl programmer looking for a method to run a script or some operation (shell.. etc) based on time. I looked into cron but this as I understand is one per server, not virtual domain.

For example I need to execute a script that reads a text file once every hour based on an action taking place to start it until another action takes place.
Start - A particular script is accessed, this signals the start. The nest time the script is accessed it single a stop.

Is this possible with Perl, Shell...?

Thanks for your help.
 
When you run the start (ie first time run) from the cron (or however), you could create a file (eg. touch /tmp/testfile) and check for its existence on the second run (then delete it and run your stop process)
HTH Dickie Bird (:)-)))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top