I have the following script "test". When i tried to execute it, I am not able to run it. I dunno why ? Then i tried getting the first few lines of the script which is displayed below:
Now i was asked to set the path for the get_inf_env variable. Could some one help me in letting me know abt how to set up a path ? Any help wud be highly appreciated
get_inf_env is not a variable, it is name of some utility being executed. I think your task is to set PATH variable, so get_inf_env can be run in the script without specifying whole path. To do so try:
Thanx for all the replies..That was quite informative. Appreciated
But the thing which bothers me is I am not able to find the get_inf_env in the directory.. I have searched in all the directories. But still am not able to find the path for that particular utility..
Well, this question should be directed to someone knowing of the application you are using. I would try setting it to the first directory and see what happens. If the script is not running properly, then set it to the second one You can also do
ls -l /usr/infa/ie/bin/get_inf_env
ls -l /usr/infa/dv03/bin/get_inf_env
and see if the size is the same, which would suggest that it is the same utility stored in two places and it wouldn't matter which directory you chose.
I hope this will suffice. If not I will show the entire script. Thanks
$head -20 test
#!/bin/ksh
PROG=$0;export PROG
PATH=/usr/informent/dv03/bin:$PATH;export PATH
ORAUSER=`get_inf_env INFORM_DB_ACCOUNT`;export ORAUSER
BATCH_HOME=`get_inf_env INFORM_DATA_HOME`
usage()
{
echo " "
echo "__________________________ test_tool_compare_________________________________________ "
echo " "
echo "Usage... test_tool_compare (Release 1.0) June, 2011 "
echo "This script generates output to support the parallel test of Partenon generated source "
echo " files with Source One generated files. One test is run per file format. The Partenon "
echo " file is loaded to Informent, saved off to another table, and the SourceOne file "
echo " is loaded to Informent and saved to another table. The data in the 2 saved off tables "
echo " are manipulated to create tables, views and reports to assist an analyst with verifying "
echo " the parallel data loaded. "
echo " "
echo "The user is prompted to enter File Format, the SourceOne physical file name involved "
$