473,396 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

create a cron job of php script using webmin

hi,

i m using webmin to create a cron job of a php script. While i click on
'run it now', it works, generate the output. However, the php script
doesnt execute for every minutes which i've set to.

besides the php scripts, i have other scripts run under cron jobs, such
as perl scripts and log files. I couldnt understand why my php scripts
doesnt work under cron job.

Is it the webmin or php problem?

Give me some ideas please!! really getting frustrated !! T_T

Aug 11 '05 #1
2 13317
On Thu, 11 Aug 2005 02:19:50 -0700, volantecho wrote:
hi,

i m using webmin to create a cron job of a php script. While i click on
'run it now', it works, generate the output. However, the php script
doesnt execute for every minutes which i've set to.

besides the php scripts, i have other scripts run under cron jobs, such
as perl scripts and log files. I couldnt understand why my php scripts
doesnt work under cron job.

Is it the webmin or php problem?

Give me some ideas please!! really getting frustrated !! T_T


Cron jobs run with an extremely minimal environment. Practically, this
means that there's no PATH set up, so you either need to add in the
necessary directories in a PATH=... line at the top of your script ( which
also needs #!/bin/bash or equivalent as it's first line ), or all
applications are called using their absolute path. I normally use the
latter, but I really don't know why - it makes scripts a lot more
difficult to port!

Steve
Aug 11 '05 #2
Hi Steve,

First thanks for your response! I solved the prob :)
I havent put the full path of my php command, that caused the problem

i failed to make my cron job run when i write the command like this:
php -q /home/lain/public_html/cronjob.php

but this work!!
usr/bin/php -q /home/lain/public_html/cronjob.php

never thought to add the 'usr/bin' at front while on my another server
i'd never add them, but they works :D

Thanks again, Steve :)

Aug 11 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sam G | last post by:
Hi all, Often when I post a query problem the replies ask that a create table script is provided. Is there an easy way to do this on SQL 2000? What if I don't want to include a whole table only...
4
by: Razzbar | last post by:
I need to be able to conditionally load a remote script, using the "<script src=..." syntax. Or some other way. I've seen people writing about using the document.write method, but it's not working...
7
by: Patrick Allaire | last post by:
How to create a script that list itself ? I would like to know, where is the script's code is stored once we start it. I know I can achieve that, using files : print...
1
by: clir | last post by:
Hi, I'm trying to create views on all my existing tables and for that I'd like to create a script or so. I don't want to specify the '*' for the columns in the create view statement. I prefer...
7
by: Jarosław Kozik | last post by:
how to create script - update database development code using MSSQL 2000 Enterprise Manager i'm trying in this way all tasks -genetate sql script .... ( in this way I can generate only CREATE...
2
by: korean_dave | last post by:
Does anyone know how to properly kick off a script using Windows Scheduled Task? The script calls other python modules within itself. HERE'S THE CATCH: I am used to running the script directly...
0
by: Andreas Tawn | last post by:
Does anyone know how to properly kick off a script using Windows Import os and add os.system("pause") at the end of AutomatedTestRun.py to keep cmd open. As far as not seeing any output, I...
0
by: visweswaran2830 | last post by:
Hi, I want to Create Logon script using vbscript to install software in remote system.
0
by: srgrector | last post by:
Help? with Coding database modification script using a webform & frames... I will have an Amazon book database that is updated regularly, say weekly. I need a program/script that I can run in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.