hugow
June 27, 2005, 10:36am
1
Hi,
Working on AIX using the following for loop.
for a in `find /edi/iTracTEST/sessions -name nohup.out -print`
do
echo $a
done
On the command line it works fine, but insert the code in a file and then running it, it does not want to work. I get the following back.
' is not expected.s2.sh: 0403-057 Syntax error at line 3 : `do
Please advice
There is no problem i have seen in this script.
Working for me on AIX 4.3
Do you have any other lines in the script ? or just these lines ?
hugow
June 28, 2005, 2:00am
3
No this is all there is at the moment. Have reduced the script to 4 lines due to this problem so that I can isolate it.
Is the syntax correct for using in a script?
hugow
June 28, 2005, 3:03am
4
This is a Korn Shell script. Any ideas to what is causing the error.