was [TriLUG] perl programming question. now more useless info/commentary

John F Davis johndavi at us.ibm.com
Thu Mar 21 11:21:02 EST 2002


Many thanks.  Now I wouldn't have ever known how to do that unless I would
have asked.

JD

Andrew Perrin <andrew_perrin at unc.edu>@trilug.org on 03/21/2002 11:14:38 AM
<stuff snipped>

There are several ways to do this; I would probably do something like the
following:

open(SFDISK, "|/path/to/sfdisk /dev/hde") or die "Oops! $!";
print SFDISK <<EOF;
0,174,6,-
174,174,83, *
348,173,83, -
EOF
close SFDISK;

Best,
Andy (hoping he's right this time....)

You the man!





More information about the TriLUG mailing list