07-03-2003
If you are running the second script from the first (2nd is a child process of the 1st) then you could send it to a temporary file.
If this were a programming language, you could set a global variable.
For an explaination of exit, see
this thread
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi folks I am having a little trouble in parsing a variable read into a ksh script
I have a bunch of variables passed into script
test.ksh HOST SERVER JOB1 JOB2 JOB3 JOB4 JOB5
What I want to do is read all the $JOB variables ($JOB1, $JOB2, $JOB3) into a variable and then read that variable... (2 Replies)
Discussion started by: Anubhav
2 Replies
2. Shell Programming and Scripting
i need to make sure that a command line paramter is with in a certin set of numbers and i dont know how todo it with out checking individual numbers.
if test $1 -eq (need something here)
then
echo hi
fi
like if i put individual numbers in there it works fine but how do i do a range (3 Replies)
Discussion started by: rcunn87
3 Replies
3. UNIX for Dummies Questions & Answers
so here is my path:
/usr/bin:/bin:/usr/sbin:/sbin:/Users/a:/usr/local/bin:/usr/X11/bin
how would I remove only the "a" or name string within it?
any help appreciated (7 Replies)
Discussion started by: cleansing_flame
7 Replies
4. Shell Programming and Scripting
Hi,
Currently i have a .sql file 1.sql.
I need to pass that as a parameter through a shell script to the sqlplus inside the same shell script.
How I should I do.can anyone help me pls.
I have an req where I need to send the .sql file and the place where the script has to create a .csv... (9 Replies)
Discussion started by: Hemamalini
9 Replies
5. UNIX for Dummies Questions & Answers
Hi
I am trying to remove some characters from my data file.
The data file has huge number of records say 90000 records.
I am using sed for this purpose.
eg :
cat FILENAME|sed 's/;//g' (to remove semi colon ';')
However as the data file is too huge , it is taking too much time to give... (3 Replies)
Discussion started by: dashing201
3 Replies
6. Shell Programming and Scripting
Legends,
Please help me to come out of the below Bermuda triangle.
I have four inputs in a shell script: A B C D
Now, If A is passed by user then, B C D will be ignored.
If C is passed by user, then A B D will be ignored.
Regards,
Sandy (11 Replies)
Discussion started by: sdosanjh
11 Replies
7. Shell Programming and Scripting
Howdy folks,
Im trying to assign the output of awk to a parameter.But it is not working.Need your input guys.
while read line
do
WInstname = `awk -F"Iname -" '{print $2}'`
done < input.txt
input.txt
Iname - 123 (3 Replies)
Discussion started by: coolkid
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
So this is kind of a bizarre request: Is there a way I can get the Terminal to take 30 successive screenshot images over the course of 2 seconds? I figure you can do almost anything through the terminal, so I'm hoping this is possible, too. Truthfully, I don't know that much about Unix,... (1 Reply)
Discussion started by: TranscendArcus
1 Replies
script(1) User Commands script(1)
NAME
script - make record of a terminal session
SYNOPSIS
script [-a] [filename]
DESCRIPTION
The script utility makes a record of everything printed on your screen. The record is written to filename. If no file name is given, the
record is saved in the file typescript. See WARNINGS.
The script command forks and creates a sub-shell, according to the value of $SHELL, and records the text from this session. The script ends
when the forked shell exits or when Control-d is typed.
OPTIONS
The following option is supported:
-a Appends the session record to filename, rather than overwriting it.
NOTES
script places everything that appears on the screen in filename, including prompts.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|CSI |Enabled |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5)
WARNINGS
script can pose a security risk when used in directories that are writable by other users (for example, /tmp), especially when run by a
privileged user, that is, root. Be sure that typescript is not a link before running script.
SunOS 5.10 30 Jan 2004 script(1)