Home » Infrastructure » Unix » Error in script (Unix HP-UX)
Error in script [message #536813] Fri, 23 December 2011 03:27 Go to next message
pokhraj_d
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"
fi

Please help me out to resolve the issue

Thanks
P

[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: 68625
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).

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


Current Time: Fri Mar 29 10:32:41 CDT 2024