>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 ("$cmd") or die "command failed: $?";
>

<no it's not that the command itself fails, but by the time the vars are 
passed to the system command they appear empty and the dump program goes on 
about can't backup filesystem (blank). yet you can see the vars aren't 
empty at all.>

i am not familiar with the dump program. check the man pages for dump and
see how it accepts the arguments. 
you might also try it like the example in "proramming perl"
@args = ("cmd", "arg1", "arg2"...);
system(@args) == 0 or die "..."

also try using one of the perl date functions to capture date. 




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to