Cron Automatic File Overwriting

tabu82

Verified User
Joined
Dec 31, 2009
Messages
12
Good day;
need some more help from you -

need to setup a cronjob for automatic overwriting files in a directory without prompt for overwriting permission.

for example directory A has 3 files in it:

original.txt
1.txt
2.txt

cron should overwrite original.txt for example every 12 hours cp /a/1.txt /a/original.txt

after 12 hours 2.txt should overwrite original.txt

problem is that with cp command - the server ask for overwrite permission - until permission is given the file do not get overwritten.

tx
ray
 
problem is that with cp command - the server ask for overwrite permission - until permission is given the file do not get overwritten.
ray


Not with CentOS. Cron copies without asking for overwrite permission.
 
thanks you;

indeed ! the cp command with centos - work perfectly fine !

thanks for your kind help ! :)
ray
 
Back
Top