Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Linux, Apache, MySQL > Linux Help

Linux Help Post any question relating to Linux here and hopefully someone can help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2008-08-04, 01:17 PM
Junior Member
 
Join Date: Nov 2006
Posts: 27
englishtom is on a distinguished road
Default 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
Reply With Quote
  #2 (permalink)  
Old 2008-08-05, 05:59 AM
Junior Member
 
Join Date: Nov 2006
Posts: 27
englishtom is on a distinguished road
Default

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
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:47 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.