|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
execute php file in unix every 15min
I want to run a php script (update.php) every 15 minutes.
I wrote up a run.cmd file: Code:
php update.php 1>> out1.txt 2>> out2.txt at -f run.cmd now + 15 minute Uploaded the run.cmd to the same directory on my server as my update.php. How do you execute the run.cmd file so it'll execute my script every 15min and save the output in the out1.txt file. In other words, I want the script to run perfectly every 15min at :00, :15, :30, :45 of each hour thanks |
|
#2
|
|||
|
|||
|
"man crontab" - and remove your "at" command.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
|||
|
|||
|
cron works better
Hi there
u could configure the following cron job in your cron tabinstead of at command */15 * * * * run.cmd let me know if that helps you! Quote:
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > execute php file in unix every 15min |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|