Below I am trying to automate the Sybase reporting job but unable to get the variable value as sp_helpdb proc's parameter.Kindly assist me to get out of this.#!/bin/sh. ./SYBASE.shdblist=`isql -S syb157134 -Usa -b -P << endit use mastergoset nocount ongoselect namefrom sysdatabasesgoexitendit`for db in $dblistdo        if [ -n $dblist ]; then                `isql -S syb157134 -Usa -b -P <<EOF > /sybase/pankaj/INPUT/sp_helpdb_$db.txt                use master                go                        sp_helpdb $db   ------not able to get the $db variable value                go                              exit                endit                EOF                  `          else                echo Array emptyfidone
not getting variable's values inside the isql command
bash;shell;shell script