I found out my mistake. I didn't use carriage return at the end of line.
That made cron inactive. Now it works. You make a script file with the
command
cp /home/sangu/* /usr2/
and make it executable with chmod +x [filename]
then with crontab -e as user, put
* 2 * * * [full path of the file name]
When i say full path it is something like
/home/sangu/******
Dr.K.S.Sangunni wrote:
> 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?
>
> Can I create a file- copy.cron in /etc/cron.daily directory which has the
> above job?
> sangunni
>
--
L.V.Gandhi
MECON, 5th Floor, RTC Complex, Visakhapatnam AP 530020 INDIA
[EMAIL PROTECTED], [EMAIL PROTECTED]
----------------------------------------------
Find out more about this and other Linux India
mailing lists at http://lists.linux-india.org/