RE: Crontab
From: Aseem Khurana (Aseemk_at_netsoftglobal.com)
Date: 08/29/05
- Previous message: Cédric Buschini: "Crontab"
- Maybe in reply to: Cédric Buschini: "Crontab"
- Next in thread: Eris Caffee: "RE: Crontab"
- Reply: Eris Caffee: "RE: Crontab"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Aug 2005 13:54:05 +0530 To: <cbuschini@carax.com>, "General Red Hat Linux discussion list" <redhat-list@redhat.com>
Ce'dric,
1. Firstly, you could give an argument in the crontab txt file to specify at what email address to mail the status of the cron command that was run at some time-
By writing the following, in the cron file..
MAILTO="root@localhost.localdomain"
And, for your command, I think the place where you are doing wrong, is that you don't specify what user you want the command to run into... Just log in as root, and set the cron, it will run with root privileges only... Also, run-parts is used to run all files inside a directory... And you need to run a single file, so specify the command
I think your entry in the crontab should look like this:-
====================================================
HOME=/
PATH=/sbin:/bin:/usr/sbin:/usr/bin
SHELL=/usr/bin/sh
MAILTO="abc@def.com"
0 13 * * * nice -n 19 /home/FILE_TO_LAUNCH.sh
====================================================
Check if this helps.
Regards,
Aseem.
-----Original Message-----
From: Cédric Buschini
Sent: Monday, August 29, 2005 1:45 PM
To: redhat-list@redhat.com
Subject: Crontab
Hello every one,
Using RH E3, I'd like to use cron to launch a .sh at 13:00 (it's an exemple).
Here is what I have done :
crontab -e
====================================================
HOME=/
PATH=/sbin:/bin:/usr/sbin:/usr/bin
SHELL=/usr/bin/sh
00 13 * * * root nice -n 19 run-parts /home/FILE_TO_LAUNCH.sh
====================================================
but nothing is launched
any one can help me ???
thx cédric
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 8/26/2005 -- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
- Previous message: Cédric Buschini: "Crontab"
- Maybe in reply to: Cédric Buschini: "Crontab"
- Next in thread: Eris Caffee: "RE: Crontab"
- Reply: Eris Caffee: "RE: Crontab"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|