Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
phanidileep
Hi, I am getting this error when testing for tomcat 5.5
./check_TomcatApplication.sh: line 4: syntax error near unexpected token `newline'
./check_TomcatApplication.sh: line 4: `'
./check_TomcatApplication.sh: line 4: syntax error near unexpected token `newline'
./check_TomcatApplication.sh: line 4: `'
Owner's reply
I am unsure but I think you may have not downloaded the script properly ? can you cat the script is it really a script or have you downloaded the github page ?
try wget https://raw.github.com/vahidhedayati/check_TomcatApplication/master/check_TomcatApplication.sh and attempt it again
If I do wget https://github.com/vahidhedayati/check_TomcatApplication/blob/master/check_TomcatApplication.sh
Then I attempt to execute it I get the same error ./check_TomcatApplication.sh: line 6: syntax error near unexpected token `newline'
But then what I have downloaded is a html page