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!

In reply to hereto doc by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.