Help for this page

Select Code to Download


  1. or download this
    my $output=qq{sudo /usr/bin/python /home/processLog.py \Q$name\E \Q$ag
    +e\E \Q$text\E \Q$id\E};
    return `$output`;
    
  2. or download this
    open my $fh, "-|", qw{sudo /usr/bin/python /home/processLog.py}, $name
    +, $age, $text, $id or die $!;
    return do {local $/; <$fh>};
    
  3. or download this
    use IPC::Run;
    run [qw{sudo /usr/bin/python /home/processLog.py}, $name, $age, $text,
    + $id], ">", \(my $return) or die "run: $?";
    return $return;