On Tue, 21 Dec 1999, TAG wrote about, timed file copy.:
> 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 :)
Normaly one would use cron to do that, however considering the short time,
i would use a script like the one attached.
create a file call it what you want, be carefull not to use a name which is
alread in use, edit the paths, save the file, give it executable
permissions.
chmod a+x <filename>
invole it with;
./filename &
It will then go on for ever cp'ing the file untill its killed.
#!/bin/sh
while
cp /home/pa3gcu/scripts/pipo /home/pa3gcu/scripts/pipo1
do
sleep 20
done
> Many thanks
> Tonino
--
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/
Merry Xmas.