[HPADM] Script Question
From: COUNTERMAN, DANIEL (CONTRACTOR) (DANIEL.COUNTERMAN_at_DFAS.MIL)
Date: 05/14/04
- Previous message: Copeland, Daniel: "[HPADM] scripting help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 14 May 2004 09:35:24 -0400 To: "'Hpux-Admin (E-mail)" <hpux-admin@dutchworks.nl>
All,
I am trying to see if it is possible to use a configuration file within a script and pass a parameter to the configuration file.
Here is an example of what I am trying to do:
In /dfas/cfg/imagestore.cfg:
export ENVIRONMENT=/prod/oracle/scofvp1p
export OMDBA_HOME=/shared/home/dcounter/scripts/imgobj_scripts
export ORACLE_HOME=/u01/app/oracle/product/9.2.0.4
EXPORTFILE="/$1/prod/wang/oix/$2 -anon=65535,root=fcohp16:fcohp16f:fcosun01:fcosun01e:fcosun04e"
In the script I want to be able to pass the variable filevolume to $1 and imagestore to $2 in the configuration file and use EXPORTFILE as the variable throughout the script. This will be used on multiple servers, so I want to be able to just change the configuration file and not the script which would contain the hardcoded servers going to the /etc/exports file.
Is this possible? Or does anyone have an idea of how I can do something like this?
Thanks,
Dan
--
---> Please post QUESTIONS and SUMMARIES only!! <---
To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl
Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only)
http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
- Previous message: Copeland, Daniel: "[HPADM] scripting help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]