Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #{ } [ ]
- filename="vairus.dat"
- while read linea
- do
- ps -ef | awk -v infetti=$linea '{
- if ($8 == infetti) {
- print $1 " " $2
- }
- }' | awk '{
- cmd="ps -ef"
- print $1 " "
- while( cmd | getline linea > 0) {
- split(linea,vettore)
- if( $2 == vettore[3]) {
- print vettore[2]
- }
- }
- }'
- done < $filename
Advertisement
Add Comment
Please, Sign In to add comment