Home » Infrastructure » Unix » Error in script (Unix HP-UX)
Error in script [message #536813] Fri, 23 December 2011 03:27 Go to next message
Messages: 117
Registered: December 2007
Senior Member
Hi All,
I am new in scripting.
I wrote one script but getting error[syntax error at line 6 : `fi' unexpected] when I was trying to run the same.

The below are the script details :-

if [ #? -ne 1 ] then
echo "Insufficient args"

Please help me out to resolve the issue


[Updated on: Fri, 23 December 2011 03:28]

Report message to a moderator

Re: Error in script [message #536819 is a reply to message #536813] Fri, 23 December 2011 03:50 Go to previous message
Michel Cadot
Messages: 68455
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
There are not 6 lines in what you posted and so there can be no error at line 6.

In addition, 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).

Previous Topic: Number of CPU
Next Topic: Installation error
Goto Forum:

Current Time: Thu Jun 08 19:53:26 CDT 2023