- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sh script error -: Syntax error at line 92 : `<<' ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2002 11:49 PM
10-24-2002 11:49 PM
I am trying run compjsp.sh script basically
it will compile all jsp file. But i am not
able to execute the script. i am getting
./compjsp.sh[90]: Syntax error at line 92 : `<<' is not matched. please advise me how
to rectify the problem.
regards
ravi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 12:15 AM
10-25-2002 12:15 AM
Solution- are there any special signs (tabs, white spaces, ..,) before ore after the ! in line 92 and line 167 ?
You can see this with "set list" in vi.
- Try another keyword, so replace ! by e.g NEWKEYWORD in line 92 and line 167
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 12:16 AM
10-25-2002 12:16 AM
Re: sh script error -: Syntax error at line 92 : `<<' is not matched.
Try commenting this line and running the script
again.
cat << !
regards,
U.Sivakumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 12:21 AM
10-25-2002 12:21 AM
Re: sh script error -: Syntax error at line 92 : `<<' is not matched.
I changed the cat << ! to cat << EOF
but this time i getting different error.
ksh: Header: parameter not set
regards
ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 12:22 AM
10-25-2002 12:22 AM
Re: sh script error -: Syntax error at line 92 : `<<' is not matched.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 12:29 AM
10-25-2002 12:29 AM
Re: sh script error -: Syntax error at line 92 : `<<' is not matched.
excuse me, line 167
I've tried your script and it works if you delete the white space after ! in line 167
Chris
syntax:
cat <
...
...
KEYWORD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 12:34 AM
10-25-2002 12:34 AM
Re: sh script error -: Syntax error at line 92 : `<<' is not matched.
I changed both places. cat <
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 12:45 AM
10-25-2002 12:45 AM
Re: sh script error -: Syntax error at line 92 : `<<' is not matched.
You have a trailing space after both "!" characters. I removed it and it all seems to work fine.
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 12:57 AM
10-25-2002 12:57 AM
Re: sh script error -: Syntax error at line 92 : `<<' is not matched.
Try commenting lines staring with string header
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 01:39 AM
10-25-2002 01:39 AM
Re: sh script error -: Syntax error at line 92 : `<<' is not matched.
use EOCAT or EOFTP etc..
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 01:48 AM
10-25-2002 01:48 AM
Re: sh script error -: Syntax error at line 92 : `<<' is not matched.
You've already corrected some typos in your script, but I can still find some minor problems :
- try to avoid ending spaces. For example, if you use \ to continue a line, it should protect the CR, not a space. You can remove all endind spaces from vi simply using :
:%s/ *//
You have this at line 200.
- if you use " to define a string, the content of variables will be evaluated in execution. Sometimes you want it, sometimes you don't ... If you don't, rather use simple quotes '
In your case, $header will be evaluated to null in
header_string="$Header: compjsp.sh 1.03 2002/05/22 16:49:14 cpeixoto sh $"
if -u flag is set in an interpretor, then evaluating an unet variable will give the message 'parameter not set'. If you want to get an empty string for unset variables, just add
set +u
to you script to reset this flag.
Regards,
Jean-Louis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 01:58 AM
10-25-2002 01:58 AM
Re: sh script error -: Syntax error at line 92 : `<<' is not matched.
Thanks a lot! problem solved. once again
thanks to everybody.
regards
ravi