Hi,
The following Korne Shell script does not give any syntax errors but the following while running. Request you to please let me know, how can I define the variables viz.:- listDbs and getkey here, inorder to remove the error.
1)
$ ksh -n setAlias
$
2)
$ ksh -x setAlias
+ typeset -l j
+ listDbs -g
setAlias[27]: listDbs: not found
+ listDbs -a
setAlias[27]: listDbs: not found
+ getkey hosts unix
setAlias[34]: getkey: not found
--------------------------------------------------------------------------
setAlias
-------
#! / usr / bin / ksh
# ================================================= ===========================
# Version control: $ Id $
# Name: setalias
# Description: set default aliases
# Synopsis: setalias
# Exports:
# Calls: getkey
# ================================================= ===========================
# Note:
# ================================================= ===========================
# Version:
# Author:
# Change:
# ================================================= ===========================
# Instances
typeset -l j
for j in `listDbs -g ; listDbs -a`
do
alias -x $j=". setOraEnv $j"
done
# Hosts
for i in $(getkey $ENVFILE hosts unix)
do
alias -x $i="rlogin $i"
done
--------------------------------------------------------------------------
Regards,
Marconi.