Thought of a great idea to annoy lazy web developers. now if I only had speakers on my work PC.. hmm..
ActivePerl + Cygwin + Busy error_logs
-Ryan
ssh rfb@webhost 'tail -f /var/log/httpd/webhost/error_log' | perl -MWi +n32::OLE -ne "BEGIN{$v=Win32::OLE->new('SAPI.SpVoice')} s/\[.*?\]//g; +s/\/\S+(?=\/)//g;print\"$_\n\";$v->Speak($_)";
ActivePerl + Cygwin + Busy error_logs
-Ryan
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Log Talker
by giulienk (Curate) on Jul 27, 2003 at 16:13 UTC |
Back to
Cool Uses for Perl