in reply to backtick operator

When I execute the script from the command line I am seeing the correct output.
Does this message means it's failing in some other environment? Some environment you're not telling us about? Perhaps a web server? Something else?
grep -i "$dbname " ~/.passwd > $idfl
Are you sure this is looking in the right home directory?

Replies are listed 'Best First'.
Re^2: backtick operator
by spjcr (Initiate) on May 13, 2010 at 17:00 UTC

    Yes, it looks like it is executing in the right home directory - I am executing the script as the same userid and same environment in both instances.

    The file (.passw) in the home directory looks like this:

    databasename1 username1 password1 databasename2 username2 password2

    ect.

Re^2: backtick operator
by spjcr (Initiate) on May 13, 2010 at 17:13 UTC

    I should clarify - "When I execute the script from the command line I am seeing the correct output." - I am talking about executing the getDBlogin script here