gavinj.net

Thoughts on technology, infrastructure, and AI

python-clamav Could it get any simpler?

If only life was this simple apt-get install python-clamav: >>> import pyclamav >>> ret=pyclamav.scanfile('/tmp/virus') >>> print ret (1, 'Worm.Sober.G') >>> ret=pyclamav.scanthis("Buffer to test bla...

Mysql Command of the day

I thought this one was worth blogging. To save the output of an SQL query in a file simply do this: SELECT * FROM table INTO OUTFILE "/tmp/filename.txt" Produces a tab delimited file with the outputs...