Re: [SLUG] Log CLI session to a file.

From: Christopher Hotchkiss (christopher.hotchkiss@gmail.com)
Date: Fri Dec 31 2004 - 01:01:00 EST


you could run the following

#!/usr/bin/perl
while(<>){
open(LOG,">output.log");
$result = `$_`;
print $result;
print LOG $result;
}

-- 
Christopher Hotchkiss
(813)960-9273
http://www.post227.org
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:52:43 EDT