RE: Crontab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxx"


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@xxxxxxx"

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@xxxxxxxxxx
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@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux