LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-01-2004, 02:15 AM   #1
ozstar
Member
 
Registered: Oct 2003
Location: Sydney OZ
Distribution: Ubuntu 20.04LTS, Zorin 16.2 Pro
Posts: 143

Rep: Reputation: 15
Question Help with Cron commands


Hi,

I have a php program on a Linux server with the only access to anything via CPanel. I have senbt a CRon job to work and I get the notification emails however I get this message everytime..

/bin/sh: line 1: 0: command not found

The Subject of the Notification Email is..

Cron <website@uluru> 0 */3 * * * /home/website/public_html/updatetmdb

Th is the ipdatemdb file refered to..

#!/bin/sh

/usr/local/bin/php/home/website/public_html/getdata.php

Any ideas whu it doesn't worek and why I get this message ?

Oz


 
Old 05-01-2004, 03:07 AM   #2
jib2
Member
 
Registered: Sep 2003
Location: Paris, France
Distribution: Arch x86_64
Posts: 221

Rep: Reputation: 30
Did you check the filenames for mistyping (there are a few in your post : updateTmdb / Ipdatemdb... :-\ )
 
Old 05-03-2004, 04:07 PM   #3
nerdstat
LQ Newbie
 
Registered: Apr 2004
Location: Brussels, Belgium
Distribution: Gentoo with 2.6.8-kernel
Posts: 15

Rep: Reputation: 0
I believe you need to add some space between your php call like this
Code:
/usr/local/bin/php  /home/website/public_html/getdata.php
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 08:09 AM
[Torrent] CRON and Console commands Tanc Linux - Newbie 1 05-26-2005 12:00 PM
No mail in Solaris Cron commands markraem Solaris / OpenSolaris 1 01-05-2004 03:11 PM
[cron][mdk9.1]cron deamon seems to ignore some task... yannrichet Linux - Newbie 5 06-26-2003 09:57 AM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration