Airoscript-sp.sh 39 Syntax Error Unexpected
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site syntax error at line 1 (' unexpected in shell script About Us Learn more about Stack Overflow the company Business Learn more about hiring
Syntax Error At Line (' Unexpected
developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux
Syntax Error ( Unexpected Bash Array
Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can
Syntax Error ( Unexpected Ubuntu
ask a question Anybody can answer The best answers are voted up and rise to the top Shell script fails: Syntax error: “(” unexpected up vote 31 down vote favorite 7 I've been working on a script that automates setting up a development environment for Raspberry Pi development (step by step details that work are here). The script is linked in that article but convenience you can find ksh syntax error unexpected it here also. Now when run this script install and sets up the environment without error but you have to enter your sudo password more than once due to sudo's time-out value by default. So I started experimenting by removing all the sudo lines and running the whole script via sudo at the command line like so: kemra102@ubuntuvm:~$ sudo ./pi_dev_env_install.sh This works fine as expected and gets most of the way through until this point: ./pi_dev_env_install: 68: ./pi_dev_env_install.sh: Syntax error: "(" unexpected Now this line worked fine previously when not running the whole script with sudo. There is nothing about this line running as sudo that should stop it working to my knowledge, does anyone have any ideas? bash shell ubuntu shell-script share|improve this question edited Aug 18 '12 at 12:08 Gilles 368k666651117 asked Aug 18 '12 at 11:37 kemra102 4681613 The shebang is really in line 9? Due to Ubuntu's DashAsBinSh affinity I suspect your script is interpreted by dash instead of bash. Try to move the shebang in line 1. –manatwork Aug 18 '12 at 11:45 According to that article calling /bin/bash directly instead of /bin/sh will; correctly use bash instead of dash
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About line 1: syntax error: unexpected word (expecting ")") Us Learn more about Stack Overflow the company Business Learn more about hiring syntax error at line 1 (' unexpected solaris developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the bash function syntax error unexpected Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Syntax error: unexpected end of file. http://unix.stackexchange.com/questions/45781/shell-script-fails-syntax-error-unexpected Bash up vote 1 down vote favorite 1 I want to set up a teamspeak bot, and I have this script to start this. #!/bin/bash if [ $1 = 'stop' ] then echo stop >> /root/ts3bot/tmp/log.txt date >>/root/ts3bot/tmp/log.txt echo ====================== screen -S bot -X quit fi if [ $1 = 'start' ] then echo start >> /root/ts3bot/tmp/log.txt date >> /root/ts3bot/tmp/log.txt echo ====================== screen -dmS bot php core.php http://stackoverflow.com/questions/32146273/syntax-error-unexpected-end-of-file-bash ps ax | grep -v grep | grep -v -i SCREEN | grep links >> /root/ts3bot/tmp/log.txt fi
Support Search GitHub This repository Watch 164 Star 1,478 Fork 738 drush-ops/drush Code Issues 352 Pull requests 91 Projects 0 Wiki Pulse Graphs New issue BASH 4.3.42 https://github.com/drush-ops/drush/issues/2065 Errors - error importing fucntion definition for BASH_FUNC_module Fedora 23 (F23) #2065 Open taz77 opened this Issue Mar 13, 2016 · 20 comments Projects None yet Labels type-bug Milestone No milestone Assignees greg-1-anderson https://irclogs.ubuntu.com/2010/05/29/%23ubuntu.html 7 participants taz77 commented Mar 13, 2016 I have been trying to resolve this but I haven't been able to on my own. Hoping someone else here has some insight. Running the latest syntax error Drush (via Composer global install) I get errors in bash on Fedora 23 which is using Bash version 4.3.42. This error: sh: scl: line 1: syntax error: unexpected end of file sh: error importing function definition for `BASH_FUNC_scl' and: sh: module: line 1: syntax error: unexpected end of file sh: error importing function definition for `BASH_FUNC_module' Repeats itself eight times per drush call. Drush still syntax error unexpected runs without a problem. Just blasts your terminal with loads of text. I have axed the .drush/ folder and re-run drush init. That does not change the problem. Googling the error gets a lot of hits for many other issues. Ideas? Drush member weitzman commented Mar 17, 2016 No idea. Try Drupal Answers. weitzman closed this Mar 17, 2016 taz77 commented Mar 20, 2016 The problem is with Drush and the latest version of Bash shell. That is why I posted this here. taz77 commented Mar 20, 2016 https://stackoverflow.com/questions/10496758/unexpected-end-of-file-and-error-importing-function-definition-error-running mtift commented Apr 25, 2016 I have also experienced this problem on Fedora. It's not clear to me where to put the unset module command. taz77 commented Apr 26, 2016 Agreed. It's a compatibility issue that will grow once the newer versions of bash are more mainstream. They just don't realize it here yet. The maintainers are quick to close rather than diagnose. weitzman reopened this May 5, 2016 greg-1-anderson was assigned by weitzman May 5, 2016 Drush member greg-1-anderson commented May 5, 2016 Not sure this is caused by new versions of bash; this apparently was a problem for some folks in 2011. See: http://gridengine.org/p
eln1notry whit ndis you cant lose nothing if is same than dont use it :)00:00 eln1noyoungblood: im not sure for your solution00:01 freebseis there any way tom install net 3.5 or whatever it is called in wine ? this NET thing for windows, I want to run a worldcup programm for windows, quite simple, but it needs .NET00:02 eln1noyoungblood: what keyboard model is selected in layouts?00:02 a51hqmorning00:02 __-osh-__adamror: Good luck. If you had asked me 5 yrs ago I could have helped. Not anymore. Sorry.00:02 youngbloodeln1no, 105 generic00:02 eln1nosame like me00:02 adamror__-osh-__:lol (:00:02 eln1noi dnt know why you cant use that key buttons correctly00:02 eln1noim sure you will figure it out soon :)00:03 a51hqcan any one help with setting up https on firewall on router please?00:03 caook: how the hell do i disable this sh*t of vgaarb?00:03 a51hqor am i in the wrong place00:04 PurpleyHey why is it that when I run conky on my homescreen everytime something on it is updated, the other icons on my desktop become invisible but are still there? How do I make it stop00:04 eln1noadamror: what ubuntu version do u use?00:04 adamrorUm.. the latest desktop version00:04 eln1nodid you use any other ver. before and how wireless was preforming?00:05 antivirtelfreebse it works I think :D thx00:05 adamroreln1no, wireless was working normally in windows 7 but when I uninstalled windows for linux it kinda slow down alittle. It connects to the intertubes, it just lags alittle on certain websites.00:06 a51hqhi can anyone help00:07 eln1noso this is first time you use ubuntu :)00:07 eln1noa51hq: install gufw in synaptic00:07 adamrorNo... I have it installed at work, on my laptop and netbook. Just disliked windows on my desktop.00:07 ptiggaxangua: Finally got it to work. There was something strange about the partition table on the usb-stick. Removed all the partitions, Created a new Fat32 primary partition, used usb-creator and it worked. Thanks for your help00:07 antivirtelsox -c 2 -s -w -r 32000 -t ossdsp /dev/dsp1 -t ossdsp -w -r 32000 /dev/dsp <-- this isnt work, i need sound! :S00:08 a51hqaln1no im trying to set up my readynas need to open it up for that does that program help for this00:08 adamrorI guess not having the internet working is no big deal... I'll just read a big or something!!00:09 eln1noadamror: i dnt know solution for you prob. i use jaunty lucid doesent even boot on my comp., karmic screwed my g. card.. only jaunty working fast and good lol00:09 MrKlown_kinda confused on how to install sun java00:09 MrKlown_i went to their website and downloaded the rpm file but it did nothing00:09 bazhang!java | MrKlown_00:09 ubottuMrKlown_: To inst