Home > Syntax Error > Bin/sh 1 Syntax Error End Of File Unexpected

Bin/sh 1 Syntax Error End Of File Unexpected

Contents

Find More Posts by ilikejam 04-29-2010, 12:30 PM #6 catkin LQ 5k Club Registered: Dec 2008 Location: Tamil Nadu, India Distribution: Debian Posts: 8,576 Blog Entries: 31 Rep: The Keep adding :) –Shobhit Puri May 14 '15 at 23:07 add a comment| up vote 5 down vote In my case, I found that placing a here document (like sqplus ... Now I know my ABCs, won't you come and golf with me? This was really helpful. this content

Were slings used for throwing hand grenades? LinuxQuestions.org > Forums > Non-*NIX Forums > Programming [SOLVED] Shell Scripting "syntax error : unexpected end of file" User Name Remember Me? But it's working very strange. Least Common Multiple How to indicate you are going straight?

Syntax Error End Of File Unexpected (expecting Fi )

Try changing it to #!/bin/bash catkin View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by catkin View Blog 04-29-2010, 12:43 PM #7 Skipping directly to level 4 Now I know my ABCs, won't you come and golf with me? Password Protected Wifi, page without HTTPS - why the data is send in clear text? paulsm4 View Public Profile View LQ Blog View Review Entries View HCL Entries Visit paulsm4's homepage!

Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. Meaning of Guns and ghee Skipping directly to level 4 Do COB LEDs usually need electrically insulating from the heatsink? Video displays in Star Wars How to pluralize "State of the Union" without an additional noun? Syntax Error Unexpected End Of File In Unix Shell Script If not, why?

GTIN validation On THE other hand or on another hand? Syntax Error End Of File Unexpected (expecting Done ) When dash reaches line 68, it sees a syntax error: that parenthesis doesn't mean anything to it in context. Short science-fiction story about a guy stationed on a stranded planet and a Martian woman who accompanied him What is the sh -c command? Where did I place my $(FILE)?"; \ fi Adv Reply Page 1 of 2 12 Last Jump to page: Quick Navigation Programming Talk Top Site Areas Settings Private Messages Subscriptions

Religious supervisor wants to thank god in the acknowledgements Is it possible to check for existence of member templates just by an identifier? Syntax Error Unexpected End Of File In Php How to handle spending money for extended trip to Europe? Fixed. What aircraft would have these tail numbers?

Syntax Error End Of File Unexpected (expecting Done )

Inverted question mark, plus its gender Why can a Gnome grapple a Goliath? grep "fi " cldtest.sh only reveals 3 matching fi statements. Syntax Error End Of File Unexpected (expecting Fi ) Adv Reply January 12th, 2011 #3 the_photon View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Jan 2011 Beans 8 Re: Question about if statements in Syntax Error End Of File Unexpected (expecting Then ) vBulletin 2000 - 2016, Jelsoft Enterprises Ltd.

The single bracket construct is an ordinary built-in command, so special characters such as < retain their normal meaning. http://sovidi.com/syntax-error/bison-syntax-error-unexpected-end-of-file.php My girlfriend has mentioned disowning her 14 y/o transgender daughter Multiplication by One Does the verb 'to busy' require a reflexive pronoun? How was this bridge burning and collapsing scene filmed in Buster Keaton's The General? Rosa Parks is a [symbol?] for the civil rights movement? Syntax Error Unexpected End Of File In Linux

However you also have a number of other problems - your backquoted touch /tmp/alert.txt... Why did companions have such high social standing? The script : #!/bin/bash declare -i s declare -i m declare -i h if [ "$3" < 50 ]; then s=$3+10 m=$2 h=$1 else if ["$2" < 50 ]; then s=$3-50 have a peek at these guys American English: are [ə] and [ʌ] different phonemes?

Which requires more energy: walking 1 km or cycling 1 km at the same speed? Syntax Error Unexpected End Of File Bash So you forgot one fi too. Why don't most major game engines use gifs for animated textures?

In the latter part of your code, you have 5 ifs and 4 fis.

command is syntactically invalid, and you need a space before the closing bracket of an if test. How does Gandalf get informed of Bilbo's 111st birthday party? Tango Icons Tango Desktop Project. Syntax Error Unexpected End Of File Shell Script Do you want to help us debug the posting issues ? < is the place to report it, thanks !

What does Sauron need with mithril? Run the file ("./tmp.sh") with no arguments 6. i love yOu i lOve you i love yOu! check my blog I meant : elif (( $2 < 59 )); then s=$3-50 m=$2+1 h=$1 else s=$3-50 m=0 h=$1+1 fi –Sam Jun 3 '12 at 18:40 add a comment| up vote 0 down

The question does not have to be directly related to Linux and any language is fair game. Unix & Linux Stack Exchange works best with JavaScript enabled Support LQ: Use code LQ3 and save $3 on Domain Registration Blogs Recent Entries Best Entries Best Blogs Blog List Search share|improve this answer answered Aug 18 '12 at 12:08 Gilles 369k666681119 1 Thanks clearly a gap in my knowledge, I don't script much so wasn't aware of that! Maybe the shell needs ; here and there when the command is all on one line - I always need to look those things up when I have multi-line shell commands

How to deal with a really persuasive character? asked 4 years ago viewed 14026 times active 4 years ago Related 0Bash script throws “syntax error near unexpected token `}'” when run0line 45 Syntax error: unexpected end of file0Syntax Error: share|improve this answer edited Jun 3 '12 at 14:51 answered Jun 3 '12 at 13:33 Gilles 32.7k580123 [[ $3 < 50 ]] compares $3 with 50 lexicographically, so if share|improve this answer answered Jan 22 '13 at 22:34 mauro 11 2 The missing shebang was already accepted as the answer by the original poster. –Philipp Claßen Jan 22 '13

Find More Posts by paulsm4 View Blog 04-29-2010, 05:30 PM #12 roxie600 LQ Newbie Registered: Apr 2010 Posts: 5 Original Poster Rep: Thank you so much! How to deal with a very weak student? Join our community today! So sayeth the Shepherd Will the medium be able to last 100 years?

the_photon 'make' needs to see it as one line, so insert \ characters at the end of the lines in the shell command. I am down to the point now of trying random combinations of indentations, just to see if I can find one that works.