04-16-2020
It does not run in the background because it wants to read something from the terminal (stdin or direct tty).
With the fg command you can move one of the bg jobs to the foreground (and maybe enter something or give it a Ctrl-D).
Without knowing the script I cannot say where exactly the waiting occurs.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I know this seems like a stupid question.
I am trying to sort an address book. Some peole have first, middle and last names, some only have first and last names.
Eg:
Bob Hope
John Bon Jovi
etc ..
I want to sort this by last name.
I was thinking of using something like sort -k $variable... (5 Replies)
Discussion started by: kevin80
5 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have 1 million records and want to extract lines betwen 10000 -20000 and put it in another file.
Could you please suggest a command for this.
Thanks in advance (3 Replies)
Discussion started by: unxusr123
3 Replies
3. Shell Programming and Scripting
How can i write a script.?
which lists all X process and gets the start minute of each of them.
thanks (1 Reply)
Discussion started by: Anteus
1 Replies
4. Solaris
Is there any way to find "Number of files" that exists on my solaris parition in the starting of 2009 year ?
I know ctime or mtime will not help and unix wouldnt store creation time.
Only hope i can see ( and i am not sure if that will help ) is that my system is up from last 2 years without... (5 Replies)
Discussion started by: rajwinder
5 Replies
5. Shell Programming and Scripting
I have a file with contents similar to this.
abcd
1234
4567
7666
jdjdjd
89289
9382
92
jksdj
9823
298
I want to write a shell script which count the number of lines that start with the number (disregard the lines starting with alphabets) (1 Reply)
Discussion started by: grajp002
1 Replies
6. Shell Programming and Scripting
Hi,
I want to do the following:
Extract some lines from different files and copy them into one file, with the first column being the line number. I do this with
cat file1 file2 file3 |grep 'xxx' |nl > output.file
Works fine. But if I want to add data of interest from a fourth file to the... (2 Replies)
Discussion started by: paracetamol
2 Replies
7. Shell Programming and Scripting
Hello all! I am writing a script that takes in a directory name as input and if the directory exists, it shows the files inside the directory
here is what I have so far (incomplete) (mostly like pseudocode)
#/bin/sh
echo Please enter the name of a directory
read dir
grep $dir... (2 Replies)
Discussion started by: subway69
2 Replies
8. Shell Programming and Scripting
Hello community,
I created a script to simply query DB and then analize data. The environment where the script will works is two RedHat machines that access both to an external database. My script runs from the first crontab node. But what about if the first node goes down?
What I need is copy... (2 Replies)
Discussion started by: Lord Spectre
2 Replies
9. Shell Programming and Scripting
Hi Power User,
I'm trying to compute this kind of text file format:
file1:
jakarta 100 150
jakarta 170 210
beijing 220 250
beijing 260 280
beijing 290 320
new_york 330 350
new_york 370 420
tokyo 430 470
tokyo 480 ... (2 Replies)
Discussion started by: anjas
2 Replies
10. Shell Programming and Scripting
Hello there,
I'm using a read-while loop to preserve the word Failed within a text file. For example, if the word Failed exist twice in a single text file, my STDOUT should re-direct to a new text file and display Failed twice.
My output is attached to this thread. I would like output to... (4 Replies)
Discussion started by: SysAdminRialto
4 Replies
LEARN ABOUT XFREE86
scriptreplay
SCRIPTREPLAY(1) User Commands SCRIPTREPLAY(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 in the same rhythm 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 override old-style arguments.
-t, --timing file
File containing script's timing output.
-s, --typescript file
File containing script's 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.
-m, --maxdelay number
Set the maximum delay between transcript updates to number of seconds. The argument is a floating point number. This can be used
to avoid long pauses in the transcript replay.
-V, --version
Display version information and exit.
-h, --help
Display help text and exit.
EXAMPLE
% script --timing=file.tm script.out
Script started, file is script.out
% ls
<etc, etc>
% exit
Script done, file is script.out
% scriptreplay --timing file.tm --typescript script.out
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 Linux Kernel Archive <https://www.kernel.org/pub/linux
/utils/util-linux/>.
util-linux September 2011 SCRIPTREPLAY(1)