I want to run a command/shell script say script.sh
from 1AM to 2AM per minute. After observing that crontab can't work it out 'per sec' I had to go with 'per min'.
Basically, My server.sh
file takes backup
of my database
on server. This is done by three text files with names of tables
in it, hence creating three backup archives
. These backup archives are named like 'prefixYYYYmmdd', where prefix = heavy/light/weekly according to the backup type.
Now I want to copy these particular files after they are stored on server. Suppose the backup on server took 15 min. Now I should run the copy
script-client.sh
on my local computer. As this copy
script doesn't know the names of the files just created by server, it should run per sec/min in the interval those files are being created by server and grab that file.
How to use crontab per min/sec within that time interval?