Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Shouldn't you be able to use a pipe instead of a file there:

    my $pid = open(FH, "-|");
    if ($pid) {
        print FH $authinfo, "\0";
    } else {
        exec 'mount_webdav', '-a0', 'other', 'args';

    That's not right, but the basic idea is well explained in perlipc under "Safe Pipe Opens". Hope this helps.

    Hmmm, I notice you can also do this under 5.8:

    open FH, "-|", 'mount_webdav', '-a0', 'arg'
        or die "open(mount_webdav|): $!";