Home > Syntax Error > Bin/sh 1 Syntax Error Word Unexpected

Bin/sh 1 Syntax Error Word Unexpected

Contents

i am writting a code to delete excel reports older than one day. Please visit this page to clear all LQ-related cookies. 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. You are limited by virtual memory on your machine. http://sovidi.com/syntax-error/bin-sh-syntax-error-word-unexpected.php

The maddening thing here is that it compiles, or appears to. 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! Circle Font Awesome Icons more hot questions question feed lang-sh about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Only got the error message when I separated the commands: $ sudo sh # ./install hope it helps share|improve this answer answered Nov 27 '15 at 22:00 user145114 1

Bin Sh C Line 1 Syntax Error Unexpected End Of File

more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science I'm stumped. Ok. Since dash (like all other shells) is an interpreter, it won't complain until the execution reaches the problematic line.

Forum Operations by The UNIX and Linux Forums FAQ Forum Quick Links Unanswered Posts New Posts View Forum Leaders FAQ Contact an Admin Forum Community Forum Council FC Agenda Forum Governance Is it possible to check for existence of member templates just by an identifier? If you'd like to contribute content, let us know. Syntax Error Word Unexpected (expecting Do ) ksh limits the number of elements in an array to 1023.

Its ok here but helps for longer snippets. Bin Sh C Line 0 Syntax Error Near Unexpected Token ksh also allows variable to be really large as well, but limits the number of elements in an array. Remove advertisements Sponsored Links jim mcnamara View Public Profile 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 When taking passengers, what should I do to prepare them?

Adv Reply January 23rd, 2014 #6 toaster3 View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Jan 2014 Beans 6 Re: Maddening Problem with Code:Blocks syntax Syntax Error Word Unexpected (expecting ) ) Shell Script Adv Reply January 23rd, 2014 #10 toaster3 View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Jan 2014 Beans 6 Re: Code:Blocks syntax error Originally Posted How to make different social classes look quite different? When dash reaches line 68, it sees a syntax error: that parenthesis doesn't mean anything to it in context.

Bin Sh C Line 0 Syntax Error Near Unexpected Token

Syntax error: unexpected “(”-3Shell script- syntax error: unexpected end of file9Unexpected EOF and syntax error0Syntax Error: unexpected end of file — Bash script-1Syntax Error: unexpected end of file — Bash script1C Manoj manojrb18 View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by manojrb18 10-06-2011, 03:45 AM #2 manojrb18 LQ Newbie Registered: Oct Bin Sh C Line 1 Syntax Error Unexpected End Of File You can cross-compile the same shell for beagleboard (as the one used in your x86 platform) and it should run fine. Bin Sh 1 Syntax Error Unterminated Quoted String Rather it was provided by a vendor as a .tgz file which I extracted inside /opt/ folder.

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. news How much could a time traveler earn by selling a smartphone from 2016 in 2000? Blogs Recent Entries Best Entries Best Blogs Blog List Search Blogs Home Forums HCL Reviews Tutorials Articles Register Search Search Forums Advanced Search Search Tags Search LQ Wiki Search Tutorials/Articles Search All Rights Reserved. Line 1 Syntax Error Word Unexpected Expecting

Search Forums Show Threads Show Posts Tag Search Advanced Search Unanswered Threads Find All Thanked Posts Go to Page... linux operating commands and unix operating commands Syntax error: word Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome. Read all of them. http://sovidi.com/syntax-error/bin-sh-1-syntax-error-word-unexpected-expecting.php Last edited by toaster3; January 23rd, 2014 at 10:06 AM.

In the future please be sure to use SO's formatting capabilities, and be sure to cut and paste error messages exactly, plus a few lines of context before and after, when Syntax Error Word Unexpected (expecting ) ) Ubuntu But my trial and error gets me nowhere to fixing my code. What type of sequences are escape sequences starting with "\033]" Noun for people/employees/coworkers who tend to say "it's not my job" when asked to do something slightly beyond their norm?

Results 1 to 6 of 6 Thread: Syntax error: word unexpected (expecting "do") Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to

Not the answer you're looking for? You have two options to make sure the script is interpreted by bash: Move the shebang to the first line Run sudo like this: sudo bash ./pi_dev_env_install.sh share|improve this answer answered User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. Syntax Error Word Unexpected (expecting ) ) Android Find all posts by cfajohnson #4 03-05-2009 figaro Registered User Join Date: Jan 2007 Last Activity: 27 August 2016, 2:57 PM EDT Posts: 842 Thanks: 93 Thanked 29

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed When you type it in the shell it adds them automatically, so put them after the "echo" and "rm" lines. So _open.txt has to have less than 1024 "words" in it. Remove advertisements Sponsored Links jim mcnamara View Public Profile Find all posts by jim mcnamara

http://sovidi.com/syntax-error/bin-sh-syntax-error-word-unexpected-expecting.php Ksh used to be limited to 4096 elements in an array, but versions for the last few years have, like bash, been limited only by available memory. Remove

How do I deal with players always (greedily) pushing for higher rewards? Adv Reply Page 1 of 2 12 Last Jump to page: Quick Navigation Programming Talk Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums The Is it possible to check for existence of member templates just by an identifier? Here that's unlikely as your error reports the problem being on the first line of the script and most scripts start with the #! /path/to/interpreter she-bang line.

For details and our forum data attribution, retention and privacy policy, see here FAQ Forum Quick Links Unanswered Posts New Posts View Forum Leaders FAQ Contact an Admin Forum Community Forum Join them; it only takes a minute: Sign up Syntax error: word unexpected (expecting “)”) up vote 1 down vote favorite Problem in short- In linux whenever we get the following Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. 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.

For that whatever Export (export PATH=/usr/local/arm/4.3.2/bin:$PATH etc.) we did in step during tslib installation, we have to undo all of that. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. Most shells do not have arrays, so you may have to change the shebang to one that does, perhaps "#!/bin/bash". I'm literally building a single file (there's no project or anything fancy here).

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. bash shell ubuntu shell-script share|improve this question edited Aug 18 '12 at 12:08 Gilles 369k666681119 asked Aug 18 '12 at 11:37 kemra102 4681613 The shebang is really in line On THE other hand or on another hand? Edit: It also occurred to me that this could be made much easier - find has a delete option: Code: find $path/*.xls -mtime +1 -delete Adv Reply April 21st, 2009

Short science-fiction story about a guy stationed on a stranded planet and a Martian woman who accompanied him Why don't most major game engines use gifs for animated textures? Code: a=$( < war_and_peace.txt) You could put a whole book into a bash variable or an array. Skipping directly to level 4 Least Common Multiple How would family relationships change if legal system uses collective punishment? Are you new to LinuxQuestions.org?

add a comment| 3 Answers 3 active oldest votes up vote 1 down vote accepted An answer to this seems to be posted in the instructions to which you linked.