# adjust path to executable my $cmd = '/bin/repquota -a'; # execute command and fetch its output in @output my @output = qx~ $cmd ~; # check $? if $cmd executed successfully