From owner-freebsd-questions Fri Jan 4 10:33:28 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id CCA2B37B405 for ; Fri, 4 Jan 2002 10:33:17 -0800 (PST) Received: from trittico.fiddi.com ([12.228.145.237]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020104183317.MECX6450.rwcrmhc52.attbi.com@trittico.fiddi.com>; Fri, 4 Jan 2002 18:33:17 +0000 Date: Fri, 4 Jan 2002 10:33:17 -0800 (PST) From: Dave Runkle X-X-Sender: dave@trittico.fiddi.com To: budsz Cc: freebsd-questions Subject: Re: Print out console to email In-Reply-To: <20020104181521.GA18197@bdg.centrin.net.id> Message-ID: <20020104102651.U80618-100000@trittico.fiddi.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Use script(1). It's in the base system, allows you to write all console activity to a file of your choice. Start it like this: script /home/user/testing_file It flushes console to file every 30 seconds, configurable, down to every single character. When you're done just either 'exit' or CTRL-D. Then you can read the file into your mailer, or just mail it from the prompt: mail -s "Testing File" budsan02@blah.net < /home/user/testing_file Man 1 script. Dave On Sat, 5 Jan 2002, budsz wrote: > Hi, > > Sorry OOT, how to record activity output console (for ex: ls -l output) > to email?, my habit using #ls -l > testing_file, after that I try to > compose to email with command :read /home/user/testing_file in mutt, but > command #ls -l in console doesn't print to testing_file i mean just > output ls -l command (prompt doen't include). any sugestions for this...? > > TIA > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message