LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-15-2003, 04:00 AM   #1
MrSmith
LQ Newbie
 
Registered: Feb 2003
Posts: 6

Rep: Reputation: 0
Cron


Hi i have a shell script that looks like this

/usr/bin/php4 /data/Listing/ToFile.php > /data/Listing/tmp.txt

and ive setup my crontab like this
8 22 * * * root /./data/Listing/UpdateDB.sh

and it doesnt run atall as in tmp.txt isnt even replaced?
(ive tried restarting cron)

whats the stupid mistake im missing

the script works if i run it with the command /./data/Listing/UpdateDB.sh

but not the cronjob ?

Last edited by MrSmith; 04-15-2003 at 04:03 AM.
 
Old 04-15-2003, 04:08 AM   #2
Shak
Member
 
Registered: May 2002
Location: Huddersfield
Distribution: Redhat (7.2, 7.3, 8.0), Debian, Slackware, Gentoo, FreeBSD
Posts: 169

Rep: Reputation: 30
To execute the script you need an absolute path:

/path/to/script not ./path

Shak
 
Old 04-15-2003, 04:16 AM   #3
MrSmith
LQ Newbie
 
Registered: Feb 2003
Posts: 6

Original Poster
Rep: Reputation: 0
still doesnt run i now have
8 22 * * * root /data/Listing/UpdateDB.sh

?
 
Old 04-15-2003, 05:18 AM   #4
Shak
Member
 
Registered: May 2002
Location: Huddersfield
Distribution: Redhat (7.2, 7.3, 8.0), Debian, Slackware, Gentoo, FreeBSD
Posts: 169

Rep: Reputation: 30
You know that runs the script at 8 minutes past 10PM yes?

Shak
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:09 AM
cron.allow and cron.deny in slackware? tl64 Slackware 5 10-13-2005 10:44 PM
No More Cron Mail, Cron Error? Xhost Linux - General 3 07-26-2004 05:28 PM
[cron][mdk9.1]cron deamon seems to ignore some task... yannrichet Linux - Newbie 5 06-26-2003 10:57 AM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 03:30 PM


All times are GMT -5. The time now is 11: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration