- 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`;
- or download this
open my $fh, "-|", qw{sudo /usr/bin/python /home/processLog.py}, $name
+, $age, $text, $id or die $!;
return do {local $/; <$fh>};
- 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;