Inputs and outputs in the right order
freebsd at edvax.de
Fri Nov 1 03:30:21 UTC 2013
On Thu, 31 Oct 2013 21:56:01 -0500, Martin McCormick wrote:
> I know that expect does a great job of logging a session
> but I am wondering if there is an easier way to get the shell
> input echoed interwoven with all the output. In shorter words,
> what is the easiest way to produce a session log that reads like
> what actually happened when it happened?
Without knowing anything about the design of the script and
its input, I'd guess that something like | tee <filename>
or maybe even /usr/bin/script could work? It highly depends
on what is being echoed / printed to stdout and stderr and
how the script deals with the inputs...
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions