Sponsored Content
Top Forums Shell Programming and Scripting Help with passing parameters from a file Post 302943179 by RudiC on Wednesday 6th of May 2015 03:41:47 AM
Old 05-06-2015
Although it is not generally recommended, and other means sre preferred, you of course can pass any two parameters to your script, which in turn could be environment id and schema name, and construct a file name from them to open and read the needed credentials.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Passing parameters in script

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)
Discussion started by: eliguy
1 Replies

2. Shell Programming and Scripting

Passing parameters through a file

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)
Discussion started by: chawlaaman
3 Replies

3. Shell Programming and Scripting

passing more than 9 parameters

hi, i am passing around 14 parameters for a script a=$1 b=$2 c=$3 d=$4 e=$5 f=$6 g=$7 h=$8 i=\"${9}\" shift j=\"${1}\" still for j it is displaying the 1st parameter value..how to make it take the 10th parameter (2 Replies)
Discussion started by: dnat
2 Replies

4. Shell Programming and Scripting

passing parameters using awk

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)
Discussion started by: akil
4 Replies

5. Shell Programming and Scripting

Passing the parameters using a function

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)
Discussion started by: shruthidwh
3 Replies

6. UNIX for Dummies Questions & Answers

Passing the parameters through a file

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)
Discussion started by: gaur.deepti
6 Replies

7. Shell Programming and Scripting

passing parameters to the script

how can i make a script to run only when parameters are given, if parameters are not given it should through an error , saying "please enter a parameter" for ex: i want a find command to run only when the parameters are given (4 Replies)
Discussion started by: knip
4 Replies

8. Shell Programming and Scripting

passing parameters with spaces

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)
Discussion started by: sandy162
11 Replies

9. Shell Programming and Scripting

Passing 2+ parameters to one command

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)
Discussion started by: newbie2010
3 Replies

10. Shell Programming and Scripting

Passing Parameters to Crontab

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)
Discussion started by: MaheshChaudhari
7 Replies
Alzabo(3pm)						User Contributed Perl Documentation					       Alzabo(3pm)

NAME
Alzabo - A data modelling tool and RDBMS-OO mapper SYNOPSIS
Cannot be summarized here. DESCRIPTION
What is Alzabo? Alzabo is a suite of modules with two core functions. Its first use is as a data modelling tool. Through either a schema creation GUI, a perl program, or reverse engineering, you can create a set objects to represent a schema. Its second function is as an RDBMS to object mapping system. Once you have created a schema, you can use the "Alzabo::Runtime::Table" and "Alzabo::Runtime::Row" classes to access its data. These classes offer a high level interface to common operations such as SQL "SELECT", "INSERT", "DELETE", and "UPDATE" commands. Because you can manipulate construct queries through object-oriented Perl, creating complex queries on the fly is much easier than it would be if you had to dynamically construct strings of SQL. A higher level interface can be created through the use of the "Alzabo::MethodMaker" module. This module takes a schema object and auto- generates useful methods based on the tables, columns, and relationships it finds in the module. The code is generates can be integrated with your own code quite easily. To take it a step further, you could then aggregate a set of rows from different tables into a larger container object which could under- stand the logical relationship between these tables. What to Read? Alzabo has a lot of documentation. If you are primarily interested in using Alzabo as an RDBMS-OO wrapper, much of the documentation can be skipped. This assumes that you will create your schema via a schema creation GUI or via reverse engineering. Here is the suggested reading order: Introduction to Alzabo The RDBMS-specific documentation: Alzabo and MySQL Alzabo and PostgreSQL The Alzabo::Runtime::Schema docs - The most important parts here are those related to loading a schema and connecting to a database. Also be sure to read about the "join()" method. The Alzabo::Runtime::Table docs - This contains most of the methods used to fetch rows from the database, as well as the "insert()" method. The Alzabo::Runtime::Row docs - The row objects contain the methods used to update, delete, and retrieve data from the database. The Alzabo::Runtime::RowCursor docs - A cursor object that returns only a single row. The Alzabo::Runtime::JoinCursor docs - A cursor object that returns multiple rows at once. The Alzabo::MethodMaker docs - One of the most useful parts of Alzabo. This module can be used to auto-generate methods based on the structure of your schema. The Alzabo::Runtime::UniqueRowCache docs - This describes the simple caching system included with Alzabo. The Alzabo::Debug docs - How to turn on various kinds of debugging output. The Alzabo::Exceptions docs - Describes the nature of all the exceptions used in Alzabo. The FAQ. The quick reference - A quick reference for the various methods of the Alzabo objects. SCRIPTS
Alzabo comes with a few handy scripts in the eg/ directory of the distribution. These are: * alzabo_grep Given a regex and a schema name, this script will print out the table and column name for all columns which match the regex. * alzabo_to_ascii Given a schema name, this script will generate a set of simple ASCII tables for the schema. SUPPORT
The Alzabo docs are conveniently located online at http://www.alzabo.org/docs/. There is also a mailing list. You can sign up at http://lists.sourceforge.net/lists/listinfo/alzabo-general. Please don't email me directly. Use the list instead so others can see your questions. COPYRIGHT
Copyright (c) 2000-2003 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. AUTHOR
Dave Rolsky, <autarch@urth.org> perl v5.8.8 2007-12-23 Alzabo(3pm)
All times are GMT -4. The time now is 08:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy