public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Unix-like Script Command
@ 1998-07-13  3:13 Robert.Cross
  0 siblings, 0 replies; 3+ messages in thread
From: Robert.Cross @ 1998-07-13  3:13 UTC (permalink / raw)
  To: gnu-win32

#Greg wrote:

#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?

'tee' command, piped through the shell of your choice, perhaps?

tee scriptfile | /bin/bash

I'm not sure whether more qualifiers are required, maybe a bash-er/tcsh-er could
pick this up?

Bob Cross.

==Thought for the day ==
"If knowledge is power, how come librarians don't rule the universe?"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unix-like Script Command
  1998-07-12  7:18 Greg Mathis
@ 1998-07-13  9:40 ` Michael Hirmke
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Hirmke @ 1998-07-13  9:40 UTC (permalink / raw)
  To: gnu-win32

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@mike.franken.de
                         | WWW     http://aquarius.franken.de/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Unix-like Script Command
@ 1998-07-12  7:18 Greg Mathis
  1998-07-13  9:40 ` Michael Hirmke
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Mathis @ 1998-07-12  7:18 UTC (permalink / raw)
  To: gnu-win32

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?

TIA,

Greg

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-07-13  9:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-07-13  3:13 Unix-like Script Command Robert.Cross
  -- strict thread matches above, loose matches on Subject: below --
1998-07-12  7:18 Greg Mathis
1998-07-13  9:40 ` Michael Hirmke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).