Adv Reply Quick Navigation New to Ubuntu Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums The Ubuntu Forum Community Ubuntu Official Flavours Support New Skipping directly to level 4 Yes, of course I'm an adult! Sometimes solving a bug simply requires the grunt work of slogging through the code. Not the answer you're looking for? his comment is here
I don't know that where is the mistake in my code . By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] bash: syntax error near Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the
So "; ;" (or ";" at the beginning of a line) is also invalid. (Newline(s) imply ";" if there is a not-yet-terminated command, unless you use "\" to continue the line.) Code:[email protected]:~$ mkdir
Already have an account? Parentheses aren't just syntax; they cause extra work to be done. –chepner Jun 8 '12 at 15:24 add a comment| You must log in to answer this question. I've tried saving the script using different encoding types but the same error pops up.I also get an error at line 2 because it does not regonize as a command View Bash Syntax Error Near Unexpected Token Else' Are you new to LinuxQuestions.org?
terminal script command-line share|improve this question edited Sep 12 '13 at 19:09 asked Sep 12 '13 at 18:52 samrap 1971313 add a comment| 2 Answers 2 active oldest votes up vote Repo Line 2 Syntax Error Near Unexpected Token Newline there is no pattern to them. the the syslog-ng config file. When i run the command i get.. -bash: syntax error near unexpected token `newline' I've tried running it as sudo and my user and i get the same thing.
Nov 19, 2009 Syntax Error Near Unexpected Token View 2 Replies View Related General :: Syntax Error Near Unexpected Token `for File In Jan 19, 2011 I have been trying to Bash Syntax Error Near Unexpected Token Fi' 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 retention policy (in day)[Code]... Click Here to receive this Complete Guide absolutely free.
tia Adv Reply September 1st, 2009 #2 DaithiF View Profile View Forum Posts Private Message Tall Cafè Ubuntu Join Date Jul 2009 Location London Beans 1,480 DistroUbuntu 10.10 Maverick Meerkat Helpful (0) Reply options Link to this post This site contains user submitted content, comments and opinions and is for informational purposes only. Repo Syntax Error Near Unexpected Token Newline ok, wild guess, when it says Code: bin/initdb.sh -rootUser=
This way we can see exactly how your script is put together in order to troubleshoot it. http://onlinetvsoftware.net/syntax-error/bash-script-syntax-error-near-unexpected-token.php Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the I'd like to, but we depend on BVLC's Travis scripts to install Caffe on Travis and they're not very motivated to switch over from precise - BVLC/caffe#3407. share|improve this answer answered Apr 11 '11 at 14:20 Majenko 23.7k33868 Thanks for the input. Bash Syntax Error Near Unexpected Token Echo'
Reload to refresh your session. If you'd like to contribute content, let us know. I have various flavors of Linux. http://onlinetvsoftware.net/syntax-error/bash-for-syntax-error-near-unexpected-token.php Ran svn up in the trunk directory.
Force Microsoft Word to NEVER auto-capitalize the name of my company Integral using residue theorem complex analysis What to tell to a rejected candidate? Bash Syntax Error Near Unexpected Token Then' Apple Info Site Map Hot News RSS Feeds Contact Us Copyright © Apple Inc. evince foo.pdf bar.pdf & emacs foo.tex & share|improve this answer answered Apr 11 '11 at 14:23 Theo 1,294911 1 This helped me with an if statement after 2h of swearing.
Log: +++'[' 2 -ne 2 ']' +++INSTALL_DIR=/home/travis/build/lukeyeager/DIGITS/deps/torch +++LOG_FILE=/home/travis/build/lukeyeager/DIGITS/torch-install-log.txt +++./scripts/travis/install-torch.sh /home/travis/build/lukeyeager/DIGITS/deps/torch +++cat /home/travis/build/lukeyeager/DIGITS/torch-install-log.txt ++++'[' 1 -ne 1 ']' ++++INSTALL_DIR=/home/travis/build/lukeyeager/DIGITS/deps/torch ++++mkdir -p /home/travis/build/lukeyeager/DIGITS/deps/torch ++++bash ++++curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps bash: line 2: syntax error near Using open as stated by glenn is probably what you want.