01-26-2009
I just tried it using typescript and it saved everything just fine . . .
using rlogin though.... not ssh.
vi put the weird characters in the typescript file, but those
are easily removed using the sed solution earlier posted.
I don't think you can get around having to edit out the weird
vi characters.
Another alternative would be to start up typescript within the
users' .profile or .login files once they login.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi everyone,
KSH question: I know you can 'tee' STDOUT to have the output go to multiple targets; can you do the same with STDERR?
For example:
ls |tee /tmp/file.txt
Will redirect STDOUT to both the screen and the '/tmp/file.txt' file. Is there a way of doing the same thing for... (5 Replies)
Discussion started by: gsatch
5 Replies
2. Shell Programming and Scripting
hi, new to to forum...
i've been trying to create a script in tcsh but i'm having a problem with one thing...
the script has to keep log of it's input and output so i'm using
tee -a log | script | tee -a log
this keeps the logs as asked, but it gives me an extra empty prompt (not in the... (0 Replies)
Discussion started by: moseschrist
0 Replies
3. Shell Programming and Scripting
Hi,
I would like to process, filter the same ASCII asynchronous live data stream in more than one pipe pipeline.
So the one pipeline should filter out some records using grep key word
and more than one pipes pipelines
each should grep for another key words, each set seperately for each... (5 Replies)
Discussion started by: jack2
5 Replies
4. UNIX for Dummies Questions & Answers
ok,
suppose i have a file called f1
$ cat f1
this is file1
the quick brown fox jumped over the lazy dog
this is file1
who let the dogs out
this is unix
this is file1
and i have another file f2
$ cat f2
this is file2
the task is to eliminate the repeated lines in f1 and add the... (11 Replies)
Discussion started by: c_d
11 Replies
5. Shell Programming and Scripting
Hi,
When I run the following command in terminal it works. The string TEST is appended to a file silently.
echo TEST | tee -a file.txt &>/dev/null
However, when I paste this same line to a file, say shell1.sh, and use bourne shell .
I run this file in terminal, ./shell1.sh.
However I... (1 Reply)
Discussion started by: shahanali
1 Replies
6. Shell Programming and Scripting
how to duplicate an output from a shell command?
for example:
`date` will give the current date to the console.
I want this to be displayed in console and also parallely store it in file or variable.
user1@solaris4:~> date
Tue Feb 28 17:48:31 EST 2012
user1@solaris4:~> date > file
... (3 Replies)
Discussion started by: Arun_Linux
3 Replies
7. Shell Programming and Scripting
BACK STORY:
I have a script build.py . (It's for creating the ISO file for a special edition of Swift Linux.) This build.py script executes the mintConstructor.py script that I use to modify the Regular Swift Linux ISO to get the special edition Swift Linux ISO. The lines of the script that... (2 Replies)
Discussion started by: swiftlinux
2 Replies
8. Shell Programming and Scripting
Gents,
I have a file like this.
1 1
1 2
2 3
2 4
2 5
3 6
3 7
4 8
5 9
I would like to get something like it
1 1 2
2 3 4 5
3 6 7
Thanks in advance for your support :b: (8 Replies)
Discussion started by: jiam912
8 Replies
9. Shell Programming and Scripting
Hi folks,
I'm trying to work on a script that will grab a router interface report and generate the numbers of "in use" and "un-used" ports per device. Right now, I've got a cut down of the report as follows:
sing /usr/apps/siteName/etc/DCAFT-9K.cmds for send text
Connecting using... (11 Replies)
Discussion started by: Marc G
11 Replies
10. Shell Programming and Scripting
I'm on Ubuntu 14.04 and I manually updated my coreutils so that "tee" is now on version 8.27
I was running a script using bash where there is some write to pipe error at some point causing the tee command to exit abruptly while the script continues to run. The newer version of tee seems to prevent... (2 Replies)
Discussion started by: stompadon
2 Replies
LEARN ABOUT DEBIAN
scriptreplay
REPLAY(1) User Commands REPLAY(1)
NAME
scriptreplay - play back typescripts, using timing information
SYNOPSIS
scriptreplay [options] [-t] timingfile [typescript [divisor]]
DESCRIPTION
This program replays a typescript, using timing information to ensure that output happens at the same speed as it originally appeared when
the script was recorded.
The replay simply displays the information again; the programs that were run when the typescript was being recorded are not run again.
Since the same information is simply being displayed, scriptreplay is only guaranteed to work properly if run on the same type of terminal
the typescript was recorded on. Otherwise, any escape characters in the typescript may be interpreted differently by the terminal to which
scriptreplay is sending its output.
The timing information is what script(1) outputs to standard error if it is run with the -t parameter.
By default, the typescript to display is assumed to be named "typescript", but other filenames may be specified, as the second parameter or
with option -s.
If the third parameter is specified, it is used as a speed-up multiplier. For example, a speed-up of 2 makes scriptreplay go twice as
fast, and a speed-up of 0.1 makes it go ten times slower than the original session.
OPTIONS
The first three options will overide old-style arguments.
-t, --timing file
File containing script timing output.
-s, --typescript file
File containing the script terminal output.
-d, --divisor number
Speed up the replay displaying this number of times. The argument is a floating point number. It's called divisor because it
divides the timings by this factor.
-V, --version
Display version information and exit.
-h, --help
Display a help message and exit.
EXAMPLE
% script -t 2> timingfile
Script started, file is typescript
% ls
<etc, etc>
% exit
Script done, file is typescript
% scriptreplay timingfile
SEE ALSO
script(1)
COPYRIGHT
Copyright (C) 2008 James Youngman
Copyright (C) 2008 Karel Zak
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
Released under the GNU General Public License version 2 or later.
AUTHOR
The original scriptreplay program was written by Joey Hess <joey@kitenet.net>. The program was re-written in C by James Youngman
<jay@gnu.org> and Karel Zak <kzak@redhat.com>.
AVAILABILITY
The scriptreplay command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
3rd Berkeley Distribution September 2001 REPLAY(1)