SCR Reference (man Pages)
scrlog_viewer (1M) - EXAMPLES
Capture the current contents of the SCR logﬁle using default ﬁltering,
and put into the ﬁle scr.out:
scrlog_viewer -n > scr.out
The following example does the same thing:
scrlog_viewer -o scr.out
View only the commands executed between 8am June 5, 1999 and 10pm
August 14, 1999:
scrlog_viewer -s 0605080099 -e 0814220099 -lC
Non-interactively read data from stdin, timestamp it, and save the
result in the ﬁle stdin.out:
cat datafile | scrlog_viewer -t -o stdin.out
/var/opt/scr/log/scrlog.log SCR logﬁle.
/var/opt/scr/log/scrlog.old Archived version of scrlog.log,
/tmp/LFV_ <pid> Temporary ﬁles used by scrlog_viewer.
The -t option enables automatic timestamping. If
speciﬁed, each log entry is tagged with the time of day
at which it was written. Timestamping is disabled by
The -n option forces non-interactive behavior. If
speciﬁed, scrlog_viewer runs non-interactively, using
the default or speciﬁed values for all supported options
and source/destination ﬁles.
Speciﬁes the name of the ﬁle from which log data is
read. The format of the data in the speciﬁed ﬁle must
be the same as that used for raw SCR logﬁle data. If
omitted, the SCR logﬁle is read. If file is -, stdin is
read and scrlog_viewer runs non-interactively. If
given, file must be the last argument speciﬁed on the
created when the logﬁle is automatically trimmed by
SCR when its size becomes too large. Its contents are
included in the log entries read by scrlog_viewer.