programming-examples/perl/SystemFunction/Read system command and execute.pl
2019-11-15 12:59:38 +01:00

12 lines
146 B
Perl

#!/usr/local/bin/perl -T
$ENV{'PATH'} = '/bin:/usr/bin:/usr/local/bin';
while (<>) {
$command = $_;
system($command);
}