# # extended pipelining (ep) sample configuration file # (c) 2000-2003 Platon SDG, http://platon.sk/ # # telnet session read/write log # # $Platon: ep/doc/examples/08.session-log.conf,v 1.3 2003/04/17 23:56:15 nepto Exp $ # # this example is based on previous ones; as that ones this will also # connect to local SMTP (TCP/25) server but log whole session into file # 'session.log'; recieved data will be prefixed with '>> ' and sent data # will be prefixed with '<< '; for this prefixes manipulation we will use # two special subprocesses (gawk) # [Process] name = telnet input = STDIN output = STDOUT errput = STDERR command = telnet 0 25 [Process] input = telnet.output output = log.input errput = STDERR command = gawk '{ print ">> "$0; fflush(); }' [Process] input = INPUT output = log.input errput = STDERR command = gawk '{ print "<< "$0; fflush(); }' [Process] name = log errput = STDERR command = tee session.log