paulobrads
Programmer
I have tcpdump piping to an awk command and I want to write it to a MySQL database.
I´m not sure the best way of going about this, through shell scripting or perl. A constant connection to the MySQL db will be required as tcpdump is constantly listening on the wire as the piping takes place.
The shell script is currently:
Code:
tcpdump -i eth1 -s 1500 | awk '{print $NF}'
Any ideas?
Cheers.