View unanswered posts | View active topics It is currently Sat Jun 24, 2017 10:41 pm



Reply to topic  [ 2 posts ] 
 Task Scheduling Problem 
Author Message
Junior Member

Joined: Fri Nov 17, 2006 7:11 am
Posts: 27
Post Task Scheduling Problem
Hi Guys,

I'm putting together a site in PHP, hosted on a linux server. It's just a little game I'm doing in my spare time but I've run into a problem I cant seem to find a solution to. What I'm trying to do is schedule a task on the server to run a script at a certain time, this I can do fine but I want to be able to specify a time including seconds so... run this script at 11:45:10 today.

I know I cant do this with "at" or "crontab" so my first thought was to schedule the task for the correct minute and pass the number of seconds to the script in the url so I could then delay the script running for the correct number of seconds but if I try to run something like...

at -v 11:45 04/08/08 -f '/var/www/blah/blah/scriptname.php?delay=10'

I get the error Cannot open input file: No such file or directory. Does anyone know of a way to acheive what I am trying to do?

Hope that makes sense, if I need to clarify anything please ask!

Thanks in advance,

Tom


Mon Aug 04, 2008 11:17 am
Report this post
Profile
Junior Member

Joined: Fri Nov 17, 2006 7:11 am
Posts: 27
Post 
I guess what I am really asking is two questions, firstly is there any way to pass url variables to a scheduled task? and if not, is there any way to schedule a task to run on a specific second in linux?

I'd really appreciate any help you can give!

Tom


Tue Aug 05, 2008 3:59 am
Report this post
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.