#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Location
    India
    Posts
    192
    Rep Power
    14

    Help Running cron job


    Hi,
    I am using cron for first time.
    I have added following lines /etc/crontab file

    ######

    39 * * * * root echo "This command is run at one min past every hour"
    39 * * * * root arp -e

    ###########

    I am getting follwoing error :

    ######

    crond: can't lock /var/run/crond.pid, otherpid may be 914: Resource temporarily unavailable

    ######

    I have used follwoing command to check whether Cron is running :

    #####

    [zzzzzzz root]# ps aux | grep crond
    root 914 0.0 0.2 1516 604 ? S Jan04 0:00 crond


    #####

    Any clue what's going wrong?
    Help appreciated.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Location
    India
    Posts
    192
    Rep Power
    14
    O.K.
    No error now but thing does not work.
    I have added two lines to /etc/crontab file as follows :

    #####
    03 15 * * * root date
    03 15 * * * root arp -e
    #####

    I want to run "date" and "arp -e" at command prompt. I am on Linux machine.

    As doc says no need to restart crond after editing crontab file.

    Crond is running.
    What's going wrong? Any clue?
    Help appreciated.
    Thanks

IMN logo majestic logo threadwatch logo seochat tools logo