You are on page 1of 1

I'm facing a truble with this crontab job. My task is to back up the "test.

pl" file at every 2 minutes on


Monday to Friday by the name format of, "test.mmhhdd.pl"

The cronjob i wrote is as shown below.

#*/2 * * * 1-5/root/backup.pl

The perl script is as below.

#!/usr/bin/perl

use Date::Format;

$name = time2start("%M%H%d\n",time);

`cp /root/test.pl /root/Desktop/Backup/test.$name`;

You might also like