Error in script [message #515100] |
Fri, 08 July 2011 02:05  |
pokhraj_d
Messages: 117 Registered: December 2007
|
Senior Member |
|
|
Hi ,
I am new in scripting.
I am getting error when I try to execute the script:-
===============================================================
./test
./test[2]: syntax error at line 5 : `fi' unexpected
The below are the script details:-
======================================
#!/usr/bin/ksh -x
if [ $# -ne 1 ]
then
echo "$0 <SID_NAME?"
fi
Thanks -
P
|
|
|
Re: Error in script [message #515113 is a reply to message #515100] |
Fri, 08 July 2011 02:24  |
 |
Michel Cadot
Messages: 68420 Registered: March 2007 Location: Nanterre, France, http://...
|
Senior Member Account Moderator |
|
|
This question bears no real connection with Oracle.
Please find a more appropriate forum.
The topic is locked.
If I'm wrong, please, PM me (or report this message to a moderator, explain why you think it should be unlocked and it might be done).
By the way, it works for me, so check if you have any unprintable charavter in your script.
Regards
Michel
[Updated on: Fri, 08 July 2011 02:26] Report message to a moderator
|
|
|