hi !!

> Dear Gandhi
> I encounter the same problem. Though crontab -l shows that the cron
> active, it never worked. I have done the following
> crontab -e
> * 2* * * cp /home/sangu/*      /usr2/
> and stored it. I expect every day at 2 am this cron to copy to /usr2
> location. I have privileges for this. Any help?






a'm using cron and its working perfectly pls check out following points 

1. use 

#ps -aux | grep crond 

to see wether "crond" is there or not 

if not start cornd 


  
2. make shell script that u want to execute, in yr bin dir 
   like /home/shubh/bin/myscript 

3. now make  a file that is having cron command 
   like ( lets suppose the file name is cron.test ; this is my way of
          doing the thing u may edit using crontab -e directly ) 

  [EMAIL PROTECTED] 
  0,15,30,45 * * * * /home/shubh/bin/myscript

( if myscript produces some op u need Mailto tag otherwise the op can 
  redirected well to some file)  

4. now add it to cron using 

   # crontab cron.test

> 
> Can I create a file- copy.cron  in /etc/cron.daily directory which has the
> above job?
> sangunni
> 


don't edit /etc/cron.* files manualy  

last point just see wether crontab command have setuserid bit on or not 
it not make it on and for more information use  man 5 crontab  

this will certainly work ...

shubh
REC-Surat


----------------------------------------------
Find out more about this and other Linux India 
mailing lists at http://lists.linux-india.org/

Reply via email to