Results 1 to 2 of 2

Thread: Crontab stopped working

  1. #1
    Join Date
    Apr 2011
    Location
    Bangalore , INDIA
    Posts
    52

    Default Crontab stopped working

    I use crontab -e to add the following:

    Code:
    */1 * * * * /bin/echo "Hello" >> /home/varunb/hello.txt
    But it does not work!
    command is fine and works if I run it directly on command prompt.
    But for every minute i am testing crontab to work. Its not working.
    Please suggest me.

    It was working for all the users and root user also, suddenly stoped working last week.
    So just gave the example for root user, which is not working.
    dont know what is the problem???

    [
    Code:
    linux-3jcp:/home/varunb # cat /etc/issue
    Welcome to SUSE Linux Enterprise Server 10 SP2 (x86_64) - Kernel \r (\l).
    
    
    linux-3jcp:/home/varunb # ls
    .bash_history  .viminfo
    linux-3jcp:/home/varunb # date
    Fri Jan 25 12:37:52 GMT 2013l
    inux-3jcp:/home/varunb # /bin/echo "Hello" >> /home/varunb/hello.txt
    linux-3jcp:/home/varunb # cat hello.txt
     Hello
    linux-3jcp:/home/varunb # date
    Fri Jan 25 12:38:03 GMT 2013
    linux-3jcp:/home/varunb # date
    Fri Jan 25 12:39:10 GMT 2013
    linux-3jcp:/home/varunb # cat hello.txt
     Hello
    linux-3jcp:/home/varunb #
    
    
    Also i am running as root, i don think there will be issue with the permissions.
    
    checked below url even
    http://stackoverflow.com/questions/7...ab-not-working
    
    don know what is the problem???
    
    and i don find 
    
    /var/log/cron.log
    /var/log/cron 
    files.
    
    only /var/spool/cron/
    
    linux-3jcp:/var/spool/cron/tabs # pwd/var/spool/cron/tabs
    linux-3jcp:/var/spool/cron/tabs # ls
    root  varunb  wwwrun
    linux-3jcp:/var/spool/cron/tabs # cat root
    #!/bin/sh
    */1 * * * * /bin/echo "Hello" >> /home/varunb/hello.txt
    


  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,384

    Default Re: Crontab stopped working

    Maybe there is a lot to say about your post above (you are doing to many things as root IMHO). But the main thing I read from it is that you are using SLES 10 SP2. This however is the openSUSE forums. Which means you are at the wrong forums. Please go to: http://forums.suse.com/ . The same username/password was here work there.

    Others: This thread is CLOSED.
    Henk van Velden

Tags for this Thread

Posting Permissions

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