I have 2 scripts: script1 and script2
Script1 passes 4 parameters to script2 as follows
#script1
code
...
...
script2 $var1 $var2 $var3 $var4
Script2 uses the export command to know to expect these values
#script2
export $1 $2 $3 $4
code
...
...
The problem that I am having is... (1 Reply)
I have created a script "myscript.sh"
I need to run this script with diffrent parameters.
The parameters are stored in a file myparam.txt.
I need to run myscript.sh script for every parameter supplied in myparam.txt.
Example:
If myparam.txt contains following lines:
param1
param2
param3... (3 Replies)
Hi,
The below script is working fine
awk1.sh
=======
awk BEGIN { FS="|" } FNR==NR { f1=$2; next } $1 in f1 && $2 =="xx" && $1 == "DAILY_JOB" {print $3}
awk -f awk1.sh a.txt b.txt--Its working fine .
When passing parameters its not working .Any help it should be appereciated.
... (4 Replies)
I am writing a script that should read the csv file and pass the values in the file as parameters
to the script. The csv file looks like this:
TEST_1,20110221
TEST_2,20110220
TEST_3,20110218,20110219
Currently this is how i am running the script
./test.sh <param1> <date>
Ex: ./test.sh... (6 Replies)
Hi All,
I am new to shell scripting required some help in passing the parameter value to the shell script.
I am writing a shell script, in the script I have created two functions as below.
first function
get_trend_ids () {
Here I am connecting to the database and getting all the... (3 Replies)
Hi All,
I have written a shell script and the script is working fine, I am passing my MIT_ID(NUMBER VALUE) to the shell script from the command prompt and my script is executing as expected.
Now I have to pass all the MIT_ID's from a .txt file to the shell script,as I am automating this I... (6 Replies)
we are using following script to execute stored procedue. The problem is run_pmcmd.ksh script is using $*
parameter which is not taking in account 'Men Shirt' parameter which includes spaces.
1. Step 1
run_pmcmd.ksh CONVERT_TEST
script for run_pmcmd.ksh
/u01/$(whoami)/run_pmcmd.ksh... (11 Replies)
I have a script that uses more than one parameter. It looks like this:
for i in `cat /tmp/listofpolicies`;
do
for x in $(cat /tmp/lst |sed 's/^/\/usr\/openv\/netbackup\/db\/class\//g');
do /usr/openv/netbackup/bin/admincmd/bpplinclude $i -delete -f $x;done;done
The problem is that the... (3 Replies)
Hello Experts,
I have a requirement to pass some parameters to Linux cron tab.
For ex: My default cron entry looks like this as below:
-------------------------------
55 10 * * --... (7 Replies)
Hello Everyone,
I have developed a shell script which takes schema id and password as parameter to login into database using sqlplus,runs a query and mails the result.
My requirement is that, I dont want to pass userid and password as parameters.Instead,I want to pass say Environment... (4 Replies)
Discussion started by: karthik adiga
4 Replies
LEARN ABOUT BSD
sfind
sfind(1) ShapeTools sfind(1)NAME
sfind - shapeTools RMS recursively descend a system hierarchy
SYNOPSIS
sfind [-subs | -comp] directory [command]
DESCRIPTION
Sfind recursively descends the system hierarchy of a software system managed by the shapeTools Release Management System (shapeTools RMS).
Sfind starts it's search from directory downwards. According to the shapeTools RMS conventions, directory must contain a Shapefile which
lists the subsystems in the variable SUBSYSTEMS and the subsystem components in the variable COMPONENTS. Each subsystem is visited.
If no command is specified, sfind echoes the pathnames of the subsystems it finds, or, if the option -comp is given, the pathnames of the
components of each subsystem.
When a command is given, it is executed in the directory of each subsystem. The string ``{}'' in command is replaced by the pathname of
the subsystem or component.
OPTIONS -subs command is invoked for each subsystem. This is the default. ``{}'' in command is replaced by the pathname of the subsystem.
-comp command is invoked for each component. ``{}'' in command is replaced by the pathname of the component.
EXAMPLES
List all system components:
sfind -comp ~/development
Show the pathnames of all versionfiles:
sfind ~/development echo -n {}/ ; shape -echo VERSIONFILE
Echo identification of the last release of each subsystem:
sfind ~/development vl -last -format
'$__lastrelease$\n'
`shape -echo VERSIONFILE`
Necessary quoting to echo a pair of curly braces:
sfind ~/development echo two \{\} braces
SEE ALSO find(1), sh(1), shape(1), shape_RMS(1), shape_tmpl(7)CAVEATS
Quoting of shell meta characters can be tough.
BUGS
The program is slow because shape(1) is called at least once for each subsystem.
When sfind is interrupted, usually shape(1) displays the message ``shape - interrupted'', which may be confusing.
AUTHOR
Andreas.Lampen@cs.tu-berlin.de
shape_RMS-1.15 Fri Jun 25 17:01:50 1993 sfind(1)