Hi All,
I want to use a HTD b/c its the best way I can think of for my small amount of code.
I need to run a system image called an ignite on HPUX, but I also need to exclude many directories.
Here is my code but my hereto doc (HTD) does not work. Any ideas?
#!/usr/bin/env perl
use strict;
use warnings;
$ENV{PATH} = qq(/usr/bin:/bin:/usr/sbin:/sbin:/opt/ignite/bin);
my $host = qx(/usr/bin/hostname);
my $log = qq(/root/admin/logs/ignite/DR.log);
my $svr = q/172.x.x.x/;
### Give me non-system mount point names ###
my ($bdf,@excludes);
for $bdf (qx|bdf|) {
next if $bdf =~ /:?vg00/ || $bdf =~ /:?mounted/i;
push @excludes, (split(" ", $bdf, 0))[5];
}
my $string = <<`EOC`;
-x exclude=$_ foreach (@excludes);
EOC
print $string;
__DATA__
proper syntax is
$ make_net_recovery -v -s "IP addr" -x inc_entire=vg00 \
-x exclude=/usrb -x exclude=/cache
array contains
/usrb
/cache
/journal
.
.
.
thank you!