Home > Syntax Error > Bash Syntax Error Unexpected Token Newline

Bash Syntax Error Unexpected Token Newline


All rights reserved. fi Top Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving... This site is not affiliated with or endorsed by Apple Inc. I'm running Ubuntu Server and am having problems running a .sh script trying to build a Open GTS Server. navigate here

echo "MIME-Version: 1.0" 54. Its free and does a great job of making sure the formatting is correct for scripts, and it has several other very useful features. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. echo ' boundary="Mail.Boundary.001"' 56.

Bash Syntax Error Near Unexpected Token Newline'

Thanks, Nandi Top Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving... Are there any 'smart' ejection seats? One of the first tutorials linuxcommand.org has is using HTML in a shell script to return some system info. I thought maybe adding a would fix it, but didn't.

MoreWhitePapers Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving... Thanks! –samrap Sep 12 '13 at 19:01 I'll accept your answer in 6 min when I can –samrap Sep 12 '13 at 19:01 add a comment| up vote 0 set echo ON 9. Bash Syntax Error Near Unexpected Token Done' The correct command will be without the formatting code, and will be something like:chown -R username:staff /Users/usernameNote that there is a Unix category in the Mac OS X Technologies Community.

Were slings used for throwing hand grenades? Already have an account? Already have an account? command-line bash scripts share|improve this question edited Apr 29 at 1:26 muru 68.1k12123171 asked Apr 28 at 16:45 avidProgrammer 313 You forgot to close your quote? –steeldriver Apr 28

echo "Subject: Tablespace" 57. Bash Syntax Error Near Unexpected Token Echo' set linesize 1000 10. When taking passengers, what should I do to prepare them? Not the answer you're looking for?

Bash Syntax Error Near Unexpected Token Newline' In Ubuntu

set feedback off 8. From what I see so far, you have a Download folder, but you say your script prompts to change into a Downloads folder (plural). Bash Syntax Error Near Unexpected Token Newline' spool /tibco/scripts/ipe/monitoring/tablespace.log 14. Repo Syntax Error Near Unexpected Token Newline I try to only ever write scripts in Textwrangler or pico/nano.

ok, wild guess, when it says Code: bin/initdb.sh -rootUser= -rootPass= are you typing: Code: bin/initdb.sh -rootUser= -rootPass= or Code: bin/initdb.sh -rootUser=rootUser -rootPass=rootPass (its the second one that you need -- the check over here Search this Thread 11-22-2011, 07:14 PM #1 yusvian LQ Newbie Registered: Nov 2011 Posts: 3 Rep: syntax error near unexpected token 'newline' i had copy of antivir-workstation-pers-<> in folder This way we can see exactly how your script is put together in order to troubleshoot it. Having a problem logging in? Line 2 Syntax Error Near Unexpected Token Newline

Tango Icons Tango Desktop Project. set pagesize 2000 11. The time now is 02:11 AM. http://waspsoft.com/syntax-error/bash-for-syntax-error-near-unexpected-token.html echo '' 74. )| /usr/sbin/sendmail -t 75.

Torch member soumith commented Jan 7, 2016 yea all it takes is to remove all sudo calls. Bash Syntax Error Near Unexpected Token Else' If you split it up into simpler commands, you could: curl -s https://install.prediction.io/install.sh >install.sh # inspect install.sh here bash ./install.sh # if it fails, do bash -x ./install.sh rm ./install.sh share|improve export LD_LIBRARY_PATH=/opt/oraClient/$LD_LI BRARY_PATH 6.

Bash Guru Registered: Jun 2004 Location: Osaka, Japan Distribution: Debian sid + kde 3.5 & 4.4 Posts: 6,823 Rep: More generally, the shell has already told you what the problem

After a lot of learning and practice with navigating directories, editing files, etc, I've moved on to writing shell scripts. You have to escape all the intervening lines with a \ before the end of line. Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 706 Star 15,024 Fork 1,087 firehol/netdata Code Issues 142 Pull requests 13 Projects 5 Bash Syntax Error Near Unexpected Token Fi' TD{font-family: Calibri; font-size: 10pt; } 69. ---> 70. 71. ' 72.

export PATH=/opt/oraClient/$PATH 5. current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. I am run the commands as root. weblink How to book a flight if my passport doesn't state my gender?

echo ' 42. '${a1}' 43. '${a3}' 44. '${a2}' 45. '${a4}' 46. '${a5}'' 47. ' 48. ) >> /tibco/scripts/ipe/monitoring/emailBody.txt 49. # Send Email 50. ( 51. cat /tibco/scripts/ipe/monitoring/emailBody.txt 73. How to send HTML formatted email using Mailx? Is this the problem or a typo?

We recommend upgrading to the latest Safari, Google Chrome, or Firefox. EOF 27. How to increase the population growth of the human race Unexpected parent process id in output How to handle spending money for extended trip to Europe? GTIN validation Realism of a setting with several sapient anthropomorphic animal species Adopt A Jet/Book My girlfriend has mentioned disowning her 14 y/o transgender daughter When was this language released?

Home | Invite Peers | More UNIX Groups Your account is ready. My home country claims I am a dual national of another country, the country in question does not. I know HTML isn't a script, but I thought since in this case it was contained in a shell script, the env vars wouldn't be accessed. If not, why?

Cancel Success! It was a typo error when writing the question but the command stills shows the same error. –avidProgrammer Apr 28 at 16:56 add a comment| 1 Answer 1 active oldest votes No, there's an n but no \n in the rootUser / rootPass and just to be certain i changed the mysql root password to something without an n and got the View All Topics View All Members View All Companies Toolbox for IT Topics UNIX Groups Ask a New Question Shell Script The Shell Script group is a forum where peers share

echo "Content-Type: multipart/mixed;" 55. Problem? Terms of Use Updated Privacy Policy Cookie Usage Log In E-mail or User ID Password Keep me signed in Recover Password Create an Account Blogs Discussions CHOOSE A TOPIC Business https://travis-ci.org/lukeyeager/DIGITS/builds/100877937 Can we fix this, or do I need to figure out how to use a different Torch install mechanism?

ukiuki View Public Profile View LQ Blog View Review Entries View HCL Entries View LQ Wiki Contributions Find More Posts by ukiuki 11-23-2011, 05:53 AM #3 Brains Member Registered: cat /tibco/scripts/ipe/monitoring/tablespace.log|while read a1 a2 a3 a4 a5 ; do 41.