cron job problem(urgent)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers cron job problem(urgent)
# 1  
Old 07-12-2009
Data cron job problem(urgent)

Hey all.

Im totally new with makeing websites ect

The thing is, i wanted to make one of those pimp games, so i installed a script called mypimpscript.. it works but the 10mins cron jobs dont...

ive tried to set it up in cpanel, but im doing it wrong :S

right now it looks like this php -q /187/a87killo/cronjobs/10mins.php

and tehn i get a mail that says

Warning: include(../public_html/config.
php): failed to open stream: No such file or directory in /home/a87killo/cronjobs/10mins.php on line 2

Warning: include(): Failed opening '../public_html/config.php' for inclusion (include_path='.:/usr/lib/php:
/usr/local/lib/php') in /home/a87killo/cronjobs/10mins.php on line 2

Warning: mysql_query(): Access denied for user 'a87killo'@'localhost' (using password: NO) in /home/a87killo/cronjobs/
10mins.php on line 11

Warning: mysql_query(): A link to the server could not be established in /home/a87killo/cronjobs/
10mins.php on line 11

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a87killo/cronjobs/
10mins.php on line 12


Could not open input file: /187/a87killo/cronjobs/10mins.



what exactly do i have to put as the command?

ive tried to make this work for like a week now.... not even my host could help me,or rather would even tho i upgraded SmilieSmilieSmilie

plz help me out guys
p

# 2  
Old 07-12-2009
The key error here is:

a87killo'@'localhost

Are you using a shared server that uses host names to connect to your database?

As a side note, this may be due to because the cron is not finding the correct path.

In that script, there should be specific paths in the config information. If not do a crontab -e and check if the crontab actually holds the correct location. If it's holding relative path include a literal path such as:

/home/username/data/blah/
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execution problem with CRON job

HI, I have written an executable file in unix and I was able to execute it successfully but when I called this file with cron job it was giving error like "permission denied" and "No such file or directory". Please help in how cron calls the file and what permission is required on the file... (2 Replies)
Discussion started by: vipin kumar rai
2 Replies

2. Solaris

Problem with a cron job

When i am trying to open crontab throught command crontab -e. It is not opening? OUTPUT: # crontab -e sh: vim: not found The crontab file was not changed. Please let me know how to open and edit it??? (10 Replies)
Discussion started by: kkalyan
10 Replies

3. UNIX for Dummies Questions & Answers

Cron job problem

I have a perl script which Im planning to run every minute. I have set the cron job as * * * * * PATH= /usr/local/bin:/usr/bin:/usr/sbin:/usr/lib; perl /dm2/www/html/isos/pre5.3/autoDownload.pl I assume the script is executing every minute only because I see a entry like below when I do... (2 Replies)
Discussion started by: srijith
2 Replies

4. Shell Programming and Scripting

Problem with Cron job

Hi , I have a TCL script which i am supposed to run as a cron job.. The script works fine from command line , but when run as a cron job , its unable to find a package,, my crontab is as follows. --------------------------- #!/usr/bin/ksh * * * * * PATH=/cm8/auto/Automation/Library/TclLib ... (7 Replies)
Discussion started by: Sudharshana
7 Replies

5. Shell Programming and Scripting

Scheduling Cron job-Problem

Hello All, I want to run a script for every 5 minutes interval.So i developed a script which has to be scheduled to run for every 5 minutes. That script internally runs another script. But the problem is it is not executing properly. Can anybody throw some light on this. Below are the code... (4 Replies)
Discussion started by: RSC1985
4 Replies

6. Shell Programming and Scripting

URGENT: cron job not running the sqlplus command in shell script

cron job not running the sqlplus command in shell script but the shell script works fine from command line.. Cronjob: 5 * * * * /home/dreg/script.sh script.sh: #!/bin/ksh /oracle/u000/app/oracle/product/10204/GEN/bin/sqlplus -s <user>/<pass>@<sid/home/dreg/sqlscript.sh ... (18 Replies)
Discussion started by: Ikea
18 Replies

7. Solaris

problem with cron job

new to unix here, im learning how to schedule jobs with crontab. The following cron job runs under root but not under a test account i created. 50 11 * * 0 /usr/bin/banner "HELLO" > /dev/console i have no idea with it isn't running under the test account but runs right on time when i create... (7 Replies)
Discussion started by: solne
7 Replies

8. Solaris

cron job problem

I am trying to setup cronjob and once I start to save it is not working. This is what I am getting after I executed crontab -e, I am not even getting the privious entry and I am running from root. crontab -e 421 10 3 * * * /usr/sbin/logadm ? :wq ? Why is it not saving? Any input is... (4 Replies)
Discussion started by: mokkan
4 Replies

9. Shell Programming and Scripting

How to Schedule job using cron(URGENT)

Hello All, I m newbie to Job scheduling. Suppose i have 2 files s1.sh and s2.sh i want to make a schedule such as run s1.sh at 2AM everyday and run s2.sh 9Pm everyday. Can anyone tell me how to schdule that using CRON and i want to know what is CRON and CRONTAB. Thanks in advance (2 Replies)
Discussion started by: ravi.sadani19
2 Replies

10. UNIX for Advanced & Expert Users

Cron job skipping problem

Hi, I have a crontab that runs some shell scripts at fixed intervals. Although, one condition for a script to continue is that a previous instance of the same script should have terminated. But, inspite of the fact that the old instance has finished execution, the new instance still terminates. ... (3 Replies)
Discussion started by: puneetarora_12
3 Replies
Login or Register to Ask a Question