Hi All,
I have a problem with a crontab job.
My shell script which I want to run every day is the following:
--
$ cat alumil_daily.sh
#!/bin/bash
echo Daily VACUUM ... | gzip /home/alumil/vdblog.gz
echo
check the shell type sh or bash...
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Együd Csaba
Sent: Thursday, July 17, 2003 8:10 AM
To: redhat-list
Subject: Crontab - won't work from crontab but from command line (???)
Hi All,
I have a problem
Also check the root mail file for error messages.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Együd Csaba
Sent: Thursday, July 17, 2003 8:10 AM
To: redhat-list
Subject: Crontab - won't work from crontab but from command line (???)
Hi All,
I have
On Thu, 2003-07-17 at 08:09, Együd Csaba wrote:
Hi All,
I have a problem with a crontab job.
My shell script which I want to run every day is the following:
--
$ cat alumil_daily.sh
#!/bin/bash
On Thu, 17 Jul 2003, [iso-8859-1] Együd Csaba wrote:
Hi All,
I have a problem with a crontab job.
My shell script which I want to run every day is the following:
--
$ cat alumil_daily.sh
My
* * * * * /home/alumil/alumil_daily.sh
Do you really want this to run every minute?
When I run alumil_daily.sh from command line it creates the output file
properly.
Running it from crontab the generated output file is empty, as if the
database dump program
would not provide any output.
You're missing something crucial, the _user_ to run
the cron command as. Should be something like:
* * * * * root /home/alumil/alumil_daily.sh
Michael.
--- Ian Mortimer [EMAIL PROTECTED] wrote:
* * * * * /home/alumil/alumil_daily.sh
Do you really want this to run every minute?
When I
You're missing something crucial, the _user_ to run
the cron command as. Should be something like:
* * * * * root /home/alumil/alumil_daily.sh
Not in a crontab. Possibly you're thinking of an entry in /etc/cron.d
In a crontab the user who owns the crontab determines who the cron
job runs
On Thu, 2003-07-17 at 18:57, Ian Mortimer wrote:
You're missing something crucial, the _user_ to run
the cron command as. Should be something like:
* * * * * root /home/alumil/alumil_daily.sh
Not in a crontab. Possibly you're thinking of an entry in /etc/cron.d
In a crontab the user