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 2 13338
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
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 :) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 certain fields?
Any pointers would be gratefully received.
M
|
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 like I want it to.
What's happening is, if I do a document.write(scriptcall), the
script loads, although sometimes very slowly... (?). Any inline
code is executed (I used an alert to verify that the script is
loading). But all the previous...
|
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 file('myscript.py','rb').read()
But is there a way / a variable that contains the current file in
memory ?
|
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 to specify the column names.
I have the column names int sys.columns table but Do not know how to
handle them to have a statement like that:
CREATE VIEW myVIEW
|
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 Database SCRIPT ... )
| |
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 from the command window and
the print() is very handy for us to debug and monitor. When running
the task from Windows Scheduled Task, we'd like to be able to view the
command window and keep it up after the Task has completed...
I used the commands
|
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 haven't had any trouble with that
before. Maybe you're doing something unusual?
Have you tried using the logging module, rather than print? Might be
more useful for what you're trying to do.
|
by: visweswaran2830 |
last post by:
Hi,
I want to Create Logon script using vbscript to install software in remote system.
|
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 IExplorer (as a page, or on a page) that will allow me to review any records that the category "Include?" lists as "Undecided"; assign the record a "Yes" or "No" in place of the "Undecided" and then update the database. I only want to review undecided...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |