Korn Shell Script help required during execution...

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.

The problem is: where does the listDBs executable or shell script live?

use /usr/bin/listDBs or /home/mydirectory/listDBs or whatever is needed to locate the file.

PS: no spaces in this

#! / usr / bin / ksh 
# should be
#!/usr/bin/ksh