Basic Shell Script Help
Hi,
first i would like to say this site has been a wealth of information since i have been trying to get to grips with linux FC3!
i am trying to write a basic script to excute several commands.
What i have is this:
#!/bin/bash
java antlr.Tool lex.g
java antlr.Tool syn.g
java antlr.Tool sem.g
java antlr.Tool irt.g
java antlr.Tool cg.g
javac *.java
java camle -syn test0.le
basically if i enter this commands in the terminal they all work so i know i have everything setup but when i run the script the only command to work is the last one "java camle -syn test0.le"
the top ones say "lex.g" file not found! etc, plus the compile all java command doesn't work either!
i have tried entering the full path but that doesn't work either.
basically i want this script as when i make any changes to any of the above files i have to type in all these commands and a script to do it would be much easier, but at the moment i am spending more time trying to get the script working!
thanks
Last edited by Vasquez; 02-28-2005 at 01:02 PM.
|