delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/31/03:17:12

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3B15EFBE.13499686@lucent.com>
Date: Thu, 31 May 2001 00:16:14 -0700
From: "Victor M. Esquivel" <vesquivel AT lucent DOT com>
Organization: NetworkCare Professional Services
X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: pdykes AT us DOT ibm DOT com
CC: cygwin AT cygwin DOT com, "Victor M. Esquivel" <vesquivel AT lucent DOT com>
Subject: Re: need unix script utility to record terminal session

Hey Perry,

When ever I need to capture a session, I redirect I/O and pipe it to
"tee".  I can't remember the last time that I was not able to capture
everything in a session (including passwords and such).

Examples from a BASH prompt:
===
tnhp.sh input.txt 2>&1 | tee output.log
chksnmpstp.sh 10.2.200.57 2>&1 | tee stpchk-10.2.200.57.txt

Note: The tnhp.sh example is a BASH script that calls an Expect script
(which then does a telnet to various devices).

HTH,

-victor

> I need the unix script utility that records terminal input and output
> as user creates it for cygwin. No luck searching archives.
> 
> Does anyone know if and or where this exists?
> 
> Thanks,
> Perry
> 
> Perry Dykes

-- 
/---------------------------\ /----------------------------------\
|     Victor M. Esquivel     | NetworkCare Professional Services |
| Network Systems Consultant |   2377 Gold Meadow Way, Suit 230  |
|    vesquivel AT lucent DOT com    |        Gold River, CA 95670       |
|    (916) 859-5200 x338     |         FAX (916) 859-5201        |
\---------------------------/ \----------------------------------/
 \           Disclaimer: Standard disclaimer applies.           /
  \------------------------------------------------------------/

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019