The little joys of admin localhost
Suddenly D_E_N_I_S_K_A wrote a simple python script that makes a “shot” for each page access (by reading access.log), and asked me to post it
“In my opinion, it’s funny and causes a certain sense of pride for its localhosted https server that is looking at the network.”
Sounds used by the script , put in one directory with the script
#! / usr / bin / env python import popen2, random f_in, f_out = popen2.popen2 ("tail -f -n 0 /var/log/lighttpd/access.log") while True: line = f_in.readline () popen2.popen2 ("aplay bang_% i.wav"% random.randint (1,6))
“In my opinion, it’s funny and causes a certain sense of pride for its localhosted https server that is looking at the network.”
Sounds used by the script , put in one directory with the script