Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


Closed Thread
  Search this Thread
Old 09-02-2003, 01:28 PM   #1
LQ Newbie
Registered: Sep 2003
Posts: 7

Rep: Reputation: 0
Question CRON problems

I am trying to setup a cron task to run that will update a MySQL table, here is how I have it setup:

*/1 * * * * /var/scripts/cronupdsysklog2

Here is the conupdsysklog2 script file:

mysql -u * --password=* syslog < /var/scripts/updsysklog2

If I run 'sh conupdsysklog2' it works just fine. but every time cron runs (every minute) i get:

From root@idsconsole.*** Tue Sep 2 14:02:01 2003
Date: Tue, 2 Sep 2003 14:02:01 -0400
From: root@*** (Cron Daemon)
To: root@***
Subject: Cron <root@***> /var/scripts/cronupdsysklog2
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>

/bin/sh: line 1: /var/scripts/cronupdsysklog2: Permission denied

Any ideas??

Old 09-02-2003, 02:16 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

Closed Thread

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cron problems deadite66 Linux - General 0 08-06-2005 06:29 PM
Cron Problems DNAphil Linux - Newbie 1 07-12-2005 07:56 AM
cron problems tassinari Linux - Newbie 8 04-02-2005 10:11 PM
Cron problems goochable Linux - General 3 11-15-2003 08:47 PM
Cron problems goochable Linux - Newbie 3 04-17-2001 07:43 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:40 PM.

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