RE: Crontab

From: Aseem Khurana (Aseemk_at_netsoftglobal.com)
Date: 08/29/05

  • Next message: Aroop Maliakkal: "Reading RAM contents"
    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
    

  • Next message: Aroop Maliakkal: "Reading RAM contents"

    Relevant Pages

    • Re: Suses crontab format
      ... > |The man pages for crontab and cron don't explain Suse's crontab ... that depends on /which/ standard you go by. ... and day of month fields will specify the days that match. ... A percent sign character in this field will be ...
      (alt.os.linux.suse)
    • Re: cron on 10.5.2 server
      ... Modify your own .vimrc to specify your own nowritebackup ... autocmd BufReadPre,FileReadPre crontab.* set nowritebackup ... I did NOT specify a directory path. ... crontab.* is treated this way. ...
      (comp.sys.mac.misc)
    • Re: cron on 10.5.2 server
      ... Modify your own .vimrc to specify your own nowritebackup ... autocmd BufReadPre,FileReadPre crontab.* set nowritebackup ... I did NOT specify a directory path. ... crontab.* is treated this way. ...
      (comp.sys.mac.misc)
    • Re: cron on 10.5.2 server
      ... Modify your own .vimrc to specify your own nowritebackup ... autocmd BufReadPre,FileReadPre crontab.* set nowritebackup ... I did NOT specify a directory path. ... crontab.* is treated this way. ...
      (comp.sys.mac.misc)
    • Re: Crontab issues
      ... If you specify both a day in the month and a day of week, ... the crontab entry will be run on ... Dillon's Cron, of course, which mirrors classic Unix crontab ... I was getting permission denied error. ...
      (alt.os.linux)