1. If you wanted to do it every minute, you could use cron, but it won't go
any finer than a minute.
2. Assuming the actual copying takes less than 20 seconds, you could use a
short perl (on your language of preference) program that copies the file,
then sleeps for the rest of the 20 seconds. It would look something like
this (WARNING - following code is untested - it's just a starting point to
give you the idea):
#!/usr/bin/perl
# endless loop
while (1)
{
$starttime = time() ;
system ("cp oldfilename newfilename") ;
$nowtime = time () ;
$sleeptime = $nowtime = $starttime ;
sleep ($sleeptime) ;
} ;
# EOP
At 03:18 PM 12/21/99 +0200, TAG wrote:
>Hi All
>
>I would like to know if anyone can help with the following question:
>
>Is there a way of copying a file from one location to another every 20
>seconds?? - without doing it manually :)
------------------------------------"Never tell me the odds!"---
Ray Olszewski -- Han Solo
Palo Alto, CA [EMAIL PROTECTED]
----------------------------------------------------------------