如何将变量作为参数传递user_name
给exe文件?file.exe
另外,告诉我是否真的会使用getusername
命令从记帐开始数据包中获取用户名。
#!/usr/bin/perl
use warnings;
use strict;
my $user_name;
print "Hello radiator is executing the exe file...\n";
my $user_name = $p->getUserName;
open my $EX1_PIPE, '|-', 'file.exe'
or die $!;
print $EX1_PIPE "$_\n" # i dont know what this line is for
for qw/username password/; # i dont know what this line is for
close $EX1_PIPE or die $!;