From owner-freebsd-questions Sat Jun 5 16:47:57 1999 Delivered-To: freebsd-questions@freebsd.org Received: from stennis.ca.sandia.gov (stennis.ca.sandia.gov [146.246.243.44]) by hub.freebsd.org (Postfix) with ESMTP id 1D24E150EA for ; Sat, 5 Jun 1999 16:47:55 -0700 (PDT) (envelope-from bmah@stennis.ca.sandia.gov) Received: (from bmah@localhost) by stennis.ca.sandia.gov (8.9.3/8.9.3) id QAA29385; Sat, 5 Jun 1999 16:41:18 -0700 (PDT) Message-Id: <199906052341.QAA29385@stennis.ca.sandia.gov> X-Mailer: exmh version 2.1.0 04/14/1999 To: Vlad Skvortsov Cc: dwhite@resnet.uoregon.edu (Doug White), freebsd-questions@FreeBSD.ORG Subject: Re: script-like utility wanted In-reply-to: Your message of "Sun, 06 Jun 1999 00:03:19 +0400." <199906052003.AAA03557@hq.spc.high> From: bmah@CA.Sandia.GOV (Bruce A. Mah) Reply-To: bmah@CA.Sandia.GOV X-Face: g~c`.{#4q0"(V*b#g[i~rXgm*w;:nMfz%_RZLma)UgGN&=j`5vXoU^@n5v4:OO)c["!w)nD/!!~e4Sj7LiT'6*wZ83454H""lb{CC%T37O!!'S$S&D}sem7I[A 2V%N&+ X-Url: http://www.ca.sandia.gov/~bmah/ Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 05 Jun 1999 16:41:18 -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If memory serves me right, Vlad Skvortsov wrote: > >> Script is very convinient tool, but there's a problem if I use > >> backspace characters and the like. If I start "script SOMEWHERE" and > >> insert file SOMEWHERE to, for example, vi, the picture is not so > >> pretty: > > > >This is normal. Script also records any control characters. If you have > >long commands for `script'ing, use a shell script to avoid typos. > Scripting itself is not a problem :-) I use script mainly for > inserting "logs" of my shell sessions to mails. So control > characters in mail messages ARE the problem. You might try this: run GNU screen (it's in ports), and use its "log" command to write screen output to a file. I'm pretty sure it'll filter out control characters and Do The Right Thing (TM) for what you want. Bruce. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message