Find the answer to your Linux question:
Results 1 to 2 of 2
My cron jobs are working fine for others users but for root If i use Code: * * * * 0,1,2,3,4,5,6 /bin/sh /backups/file.sh then it works for root but if ...
  1. #1
    Just Joined!
    Join Date
    Aug 2009
    Posts
    15

    every minute cron job works but if i put any hour then don't work

    My cron jobs are working fine for others users but for root

    If i use


    Code:
    * * * * 0,1,2,3,4,5,6 /bin/sh /backups/file.sh
    then it works for root

    but if i use

    Code:
    * 10 * * 0,1,2,3,4,5,6 /bin/sh /backups/file.sh
    so that it executes at 10Am every minute then it don't work for root

    But for other users it works fine

  2. #2
    Just Joined! vishesh's Avatar
    Join Date
    Jul 2009
    Location
    Delhi
    Posts
    33

    try following

    Try
    */1 10 * * 0,1,2,3,4,5,6 /bin/sh /backups/file.sh
    thnks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...