Rc.local Syntax Error Unexpected
Find More Posts by gnashley 12-19-2010, 01:11 PM #5 T3slider Senior Member Registered: Jul 2007 Distribution: Slackware64-14.1 Posts: 2,364 Rep: Does that line that gnashley noted actually work? xri View Public Profile View LQ Blog View Review Entries View HCL Entries View LQ Wiki Contributions Find More Posts by xri View Blog 12-22-2010, 09:14 AM #15 catkin LQ But interestingly, on the correct arch the file beginning with #! /bin/sh executed perfectly. The keyword was esac and I had typed esc.
Syntax Error Unexpected In Unix
But when I run this on the other server I get: Syntax error: "(" unexpected As far as I can tell both servers are the same. xri View Public Profile View LQ Blog View Review Entries View HCL Entries View LQ Wiki Contributions Find More Posts by xri View Blog 12-22-2010, 09:05 AM #14 xri Member Reply With Quote 09-16-2007 #2 oz View Profile View Forum Posts Private Message View Articles forum.guy Join Date May 2004 Location arch linux Posts 18,732 Hi, GSF1200S Your duplicate thread has Syntax Error At Line 1 (' Unexpected Solaris The first one came with the freshly installed Slack and never gave me problems before.
Perhaps you did the same thing? Syntax Error At Line Newline Unexpected Dash does not have the <<< redirection operator. Since dash (like all other shells) is an interpreter, it won't complain until the execution reaches the problematic line. cp -R $BACKUP/* $DROPBOX/Asterix/$NOW # We can delete the backup we made 3 days ago from Copy now.
Syntax Error ( Unexpected Bash Array
xri View Public Profile View LQ Blog View Review Entries View HCL Entries View LQ Wiki Contributions Find More Posts by xri View Blog 12-22-2010, 08:40 AM #12 catkin LQ How does a migratory species advance past the Stone Age? Syntax Error Unexpected In Unix I have not touched the files in question with any DOS or Windows tool at all. Line 1: Syntax Error: Unexpected Word (expecting ")") 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
ThanksUPDATE: I have a feeling that those parenthesis that are used are causing the issue... http://vealcine.com/syntax-error/rails-syntax-error-unexpected.php 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 How could a language that uses a single word extremely often sustain itself? The backquote on the second line will be expected to have a mate somewhere. Bash Function Syntax Error Unexpected
Can we prove mathematical statements like this? Originally, I installed an Ubuntu kernel, and put KDE core on top.. The default system shell in Ubuntu is dash, not bash, so if you have #!/bin/sh then your script will be using a different shell than you expect. useful reference 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
Are illegal immigrants more likely to commit crimes? Ksh Unexpected To start viewing messages, select the forum that you want to visit from the selection below. ** If you are logged in, most ads will not be displayed. ** Linuxforums now Subdividing list with another list as a reference Passing a lambda into a function template Fantasy Story about Phantom Tollbooth/Where the Wild Things Are kids as Adults Can we prove mathematical
omment-355 I found that your init.d script works better than the one I found in the other forum though.
Here is what my DB structure is along with which DB I want to backup: In my script I also did not know what to put in at: MYSQL="$()" MYSQLDUMP="$()" GZIP="$()" 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 There is a lo, default and eth0 folder but NOT tap0. Is Not Expected Is it safe for a CR2032 coin cell to be in an oven?
Thanks-- Posts: 6Joined: Fri Feb 08, 2013 10:06 pm by azrith » Sat Apr 06, 2013 9:42 pm After following all of the instructions and other users posts, I got the The time now is 07:03 PM. - Contact Us - UNIX & Linux - unix commands, linux commands, linux server, linux ubuntu, shell script, linux distros. - Advertising - Top Join them; it only takes a minute: Sign up Bash: Syntax error: redirection unexpected up vote 54 down vote favorite 11 I do this in a script: read direc <<< $(basename http://vealcine.com/syntax-error/qmake-syntax-error-unexpected.php Here's the last few lines on the script.
Posts: 9Joined: Fri Dec 28, 2012 8:27 pm by mrcranky » Fri Dec 28, 2012 9:03 pm mrcranky wrote:Hi,I followed the instructions, but when I get to:sudo /etc/init.d/tightvncserver startThe response is:/etc/init.d/tightvncserver: I can still move the shebang of course, but that doesn't really explain as to why it works when you don’t sudo the whole script. –kemra102 Aug 18 '12 at 11:50 Thanks Again Remi View Public Profile Find all posts by Remi #5 01-16-2007 Perderabo Unix Daemon (Administrator Emeritus) Join Date: Aug 2001 Last Activity: 26 February 2016, And anyway, if you can't solve the problem with the information in this thread, ask a new question with the full content of the script and copy-paste the full error message(s).
Reload to refresh your session. The time now is 11:03 PM. Problems from using Office 64bit Sum Chain Sequence Why is the nose landing gear of a Rutan Vari Eze up during parking? e.g.: MYSQL=/usr/bin/mysql. –muru Sep 7 '14 at 17:10 1 THANKYOU SOO MUCH! –Hamza Sep 7 '14 at 17:19 add a comment| Your Answer draft saved draft discarded Sign up
However, I'm very interested in following on Keith Hedger's idea, although I don't know how to do that at this point. share|improve this answer answered Jan 7 at 15:02 dave_alcarin 5651212 1 sh is not necessarily the "user's standard shell" it's often its own executable (or symlink) and sh will be Oracle: Does enabling a PK rebuild its index? Thanks for the input, all of you.The line actually works as it is (I always use it, and I'm using it right now).
Keith Hedger View Public Profile View LQ Blog View Review Entries View HCL Entries Visit Keith Hedger's homepage! as a result I can see the kernel launching its services at boot.