Help for this page

Select Code to Download


  1. or download this
    my $cmd = "/usr/sbin/fdisk -c $device";
    open my $fdisk, "| $cmd"
    ...
    for my $command ("n", "p", "1", "1", "+G", "t", "83", "w") {
        print $fdisk "$command\n";
    };