Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 330
  • Last Modified:

Help for Shell scripts

Can someone tell me what is wrong.  I try to compille forms 9i with fgenm when i say
" f90genm userid=user_name/password@datbase  batch=yes module=$i module_type=library
    compile_all=yes window_state=minimize" in command line it's ok but when put it in shell scrits and say
" for i in `ls *.pll` do
# echo "Compiling Library $i ...."
f90genm userid=user_name/password@datbase  batch=yes module=$i module_type=library
    compile_all=yes window_state=minimize
done"
i get error bash: syntax error near unexpected token 'f90genm'

Thanks
0
Aida2
Asked:
Aida2
  • 2
1 Solution
 
ahoffmannCommented:
could you please post just the code in your script (without any additional quotes)
0
 
Aida2Author Commented:
Here is

for i in `ls *.pll` do
echo Compiling Library $i ....
f90genm userid=est/est123@cust batch=yes module=$i module_type=library
    compile_all=yes window_state=minimize
done
0
 
Aida2Author Commented:
I correct it thank you very much
it must be
for i in `ls *.pll` ;
do
echo Compiling Library $i ....
f90genm userid=est/est123@cust batch=yes module=$i module_type=library
    compile_all=yes window_state=minimize;
done
0
 
TintinCommented:
No need for the ; unless the 'do' is on the same line, ie:

for i in `ls *.pll` ; do

Also, no need for 'ls', you can just do

for i in *.pll
do
   echo "Compiling Library $i..."
    f90genm userid=est/est123@cust batch=yes module=$i module_type=library compile_all=yes window_state=minimize
done
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now