i want to make a time capturing limit of airodump-ng using the timeout command of UNIX
but it just gave a empty terminal screen!
Heres the simple perl script
#!/usr/bin/perl
use strict;
use warnings;
my $interface="eth1";
my $moninterface="prism0";
open(FILE, ">result.txt") or die "Failed to create a file!\n";
print FILE `iwlist $interface scan`;
close(FILE);
open(FILE1, "<result.txt") or die "Failed to open file!\n";
while(<FILE1>){
chomp $_;
if($_=~m/essid: \w+/i or $_=~m/\w+$/i){
print "$_\n";
}if($_=~m/address: \w+/i){
print "$_";
}if($_=~m/channel: \w+/i){
print "$_";
}
}
close(FILE1);
my $bssid=<STDIN>;
my $channel=<STDIN>;
my $filename=<STDIN>;
chomp($bssid, $channel, $filename);
system(`timeout 10 airodump-ng --bssid $bssid --channel $channel --write $filename --ignore-negative-one $moninterface`);
#GIVING A EMPTY TERMINAL SCREEN SHIT