User Cron

Oddis

Verified User
Joined
May 24, 2005
Messages
47
Hi.
I am admin of a server, but a user asked me to set up a cron for him through his user panel.
The cron is set, but it will not run.
The cron value is as follow
55***
/home/user/domains/subdomain.domain.com/public_html/generator/runcrawl.php >/dev/null 2>&1
I can run the script directly from browser:
www.subdomain.domain.com/runcrawl.php

I am grateful for any help.
 
Add the full path to php before the script like this

Code:
/usr/local/bin/php /home/user/domains/subdomain.domain.com/public_html/generator/runcrawl.php
 
cron Java

Add the full path to php before the script like this

How would I call this script via CRON ?

Code:
#!/bin/sh

if [ -z $JAVA_HOME ]
then
    JAVA=java
else
    JAVA="$JAVA_HOME/bin/java"
fi

$JAVA -cp lib/Page-Generator.jar:lib/velocity-1.4.jar:lib/velocity-dep-1.4.jar:lib/fdsapi.jar:lib/JAMon.jar:lib/jdom.jar:lib/xercesImpl.jar:lib/commons-httpclient-2.0.2.jar:lib/commons-logging-api.jar:lib/log4j-1.2.7.jar:lib/jakarta-oro-2.0.8.jar:lib/xml-apis.jar -Xms64M -Xmx300M advantage.Generator


thanks
 
Since this is a script you would use the path to the script. Make sure the script has excute permissions.

Brian
 
No Go

Since this is a script you would use the path to the script. Make sure the script has excute permissions.

Brian
hmmmm....no go

The crontab looks like
0=4 12 * * * /home/atsocal/public_html/page-generator/run.sh

And the script is executeable
 
I screwed up the boldfacing; I should have written:

What does that = sign mean, Thom?
 
Back
Top