Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. use strict;
  2. use warnings;
  3.  
  4. my $blacklist_server = "de9899svc";
  5. my $server = undef;
  6. my $exit_value = undef;
  7.  
  8. open(SERVERLISTE,"/home/ansible/serverscan/scan_results/serverliste_22.02.17.txt") or die "$!";
  9.  
  10. OUTER: while (<SERVERLISTE>) {
  11. $server = $_;
  12.  
  13. system("grep -i '$server' /home/ansible/serverscan/black.list");
  14. $exit_value = $? >> 8;
  15. print "$exit_valuen";
  16. }
  17.  
  18. close SERVERLISTE;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement