>try:
>--
>#!/usr/bin/perl
>
>$date = `date +%y%m%e`;
>$backup_dest = "/backup/home/" . "$date" . "-monthly";
>$archive_dest = "/backup/home/archives/" . "$date" . "-monthly";
>$backup_target = "/home/";
>$level = '0';
>
>$cmd = "dump -$level -u -A $archive_dest -f $backup_dest -j 9
>$backup_targ
On Jun 4, Kipp, James said:
>$date = `date +%y%m%e`;
>$backup_dest = "/backup/home/" . "$date" . "-monthly";
Needless quoting of $date, and there's no reason to separate $date from
the rest of the string:
$backup_dest = "/backup/home/$date-monthly";
>$archive_dest = "/backup/home/archives/"
On Jun 4, Mat Harris said:
>I want to issue the command to the command line, including the values of
>these vars. I have tried backticking and the system('command here') but
>they just send the vars as empty strings.
Here's the program:
#!/usr/bin/perl
$date = `date +%y%m%e`;
$backup_d
try:
--
#!/usr/bin/perl
$date = `date +%y%m%e`;
$backup_dest = "/backup/home/" . "$date" . "-monthly";
$archive_dest = "/backup/home/archives/" . "$date" . "-monthly";
$backup_target = "/home/";
$level = '0';
$cmd = "dump -$level -u -A $archive_dest -f $backup_dest -j 9
$backup_target";
system