Regarding cfrm.sh and test_rep.sh


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Regarding cfrm.sh and test_rep.sh
# 1  
Old 07-29-2008
Regarding cfrm.sh and test_rep.sh

Hi,

1) I have 2 scripts, cfrm.sh and test_rep.sh, cfrm.sh runs properly but
test_rep.sh, gives error as: rwconverter.sh: command not found.


1) cfrm.sh

export FORMS_PATH=/opt/rdbms/oracle/product/frs10g2/forms:/appl/exe
export ORACLE_TERM=vt220
export TERM=vt220
#--begin
for FILENAME in $1.fmb
do
echo Start compile $FILENAME
/opt/rdbms/oracle/product/frs10g2/bin/reports.sh module=$FILENAME userid=dpsp/dpsp@d064rps module_type=form
batch=yes
RC=$?
echo Returncode $RC
done
#--end


$/appl/ftpin> sh cfrm.sh
Start compile .fmb
Returncode 0


2) test_rep.sh

export FORMS_PATH=/opt/rdbms/oracle/product/frs10g2/forms:/appl/ftpin
export ORACLE_TERM=vt220
export TERM=vt220
#--begin
for file in $1.rdf
do
rwconverter.sh userid=dpsp/dpsp@d064rps stype=rdffile source=$file dtype=xmlfile overwrite=yes batch=yes
done

for file in $1.xml
do
rwconverter.sh userid=dpsp/dpsp@d064rps stype=xmlfile source=$file dtype=rdffile overwrite=yes batch=yes
done

for file in $1.rdf
do
rwconverter.sh userid=dpsp/dpsp@d064rps stype=rdffile source=$file dtype=rdffile overwrite=yes batch=yes
done

opt/rdbms/oracle/product/frs10g2/bin/rwconverter.sh

#--end

$/appl/ftpin> sh test_rep.sh ifp0100r
test_rep.sh: line 7: rwconverter.sh: command not found
test_rep.sh: line 12: rwconverter.sh: command not found
test_rep.sh: line 17: rwconverter.sh: command not found


Just wanted to know, why I am getting the error as rwconverter.sh: command not found. Also, how to remove the error.

Thanks in advance.

Marconi.
# 2  
Old 07-29-2008
Specify the full path for rwconverter.sh
Code:
/path/to/rwconverter.sh userid=dpsp/dpsp@d064rps stype=rdffile source=$file dtype=xmlfile overwrite=yes batch=yes

or add the path to the PATH variable :
Code:
chmod +x /path/to/rwconverter.sh 
export PATH=$PATH:/path/to
sh test_rep.sh ifp0100r

Jean-Pierre.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question