Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2002 10:33:17 -0800 (PST)
From:      Dave Runkle <dave@runkle.com>
To:        budsz <budsan02@bdg.centrin.net.id>
Cc:        freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Print out console to email
Message-ID:  <20020104102651.U80618-100000@trittico.fiddi.com>
In-Reply-To: <20020104181521.GA18197@bdg.centrin.net.id>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020104102651.U80618-100000>