delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/07/13/17:51:25

From: mh AT mike DOT franken DOT de (Michael Hirmke)
Subject: Re: Unix-like Script Command
13 Jul 1998 17:51:25 -0700 :
Message-ID: <6xmqSHT$pfB.cygnus.gnu-win32@mike.franken.de>
References: <35A8E140 DOT 6520A370 AT primenet DOT com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Hi Greg,

>I'm looking for something that logs the entire shell (tcsh) session to a
>file, like 'script' does in Unix.  I've tried messing a little with the
>script.c source code, but it was written for /dev/pty....  Any ideas?

I never used tcsh, but for bash it would be something like

exec 2>/tmp/foobar.log
set -x

at the point in your script, where you want to start logging.

>
>TIA,
>
>Greg

Be.
Michael.
--
Michael Hirmke           | Telefon +49 (911) 557999
Georg-Strobel-Strasse 81 | FAX     +49 (911) 557664
90489 Nuernberg          | E-Mail  mailto:mh AT mike DOT franken DOT de
                         | WWW     http://aquarius.franken.de/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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