Home > Syntax Error > Syntax Error Unexpected In Unix

Syntax Error Unexpected In Unix

Contents

Are you new to LinuxQuestions.org? DXA model mapping issue What coast or river-adjacent city is in this photo? UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list. Sorry, I could not paste the content here ('too many characters'). http://lebloggeek.com/syntax-error/syntax-error-unexpected-bash.html

Browse other questions tagged bash scripts backup syntax or ask your own question. 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 bash shell-script array share|improve this question edited Jan 7 at 23:36 Gilles 373k696801129 asked Jan 7 at 14:42 IGGt 398214 Did you copy-pasted the script between the two server? The Solaris OS is now owned by Oracle.

Syntax Error Unexpected In Unix

Posts: 2Joined: Fri Jan 25, 2013 9:45 pm by jordan314 » Thu Feb 21, 2013 12:39 am Hi, Thanks for this. I am running Ubuntu 12.04 32 bit version and zPanel. Either write a proper upstart script of make you life easier.

There is a lo, default and eth0 folder but NOT tap0. command: dos2unix script_file.sh script_file.sh share|improve this answer edited Apr 24 '15 at 5:31 muru 18.7k33367 answered Apr 24 '15 at 5:26 M Sarfraz 1 add a comment| up vote -1 down Unix & Linux Stack Exchange works best with JavaScript enabled current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Syntax Error At Line 1 (' Unexpected Solaris I have not upgraded bash recently.

asked 6 years ago viewed 32930 times active 7 months ago Blog Stack Overflow Podcast #92 - The Guerilla Guide to Interviewing Visit Chat Linked 2 Unexpected '(' in bash 4 Syntax Error ( Unexpected Bash Array Draw an hourglass Why does it say 'method does not exist' in my Apex code? Create the file tightvncserver in here. Thanks, Remi Code: else echo "SSH server is not running!" ; fi ;; *) echo "Usage: sshd {start|stop|restart|status}" exit 1 esac exit 0 # EOF "sshd" 58 lines, 1501 characters #

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 Syntax Error At Line Newline Unexpected I tried connecting from my windows pc with tight vnc but it just said it was refused. 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, catkin View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by catkin View Blog Page 1 of 2 1 2 > Thread Tools Show

Syntax Error ( Unexpected Bash Array

Local is "3.2.0-74-generic #109-Ubuntu", server is "3.5.0-54-generic #81~precise1-Ubuntu" –Packet Tracer Jan 28 '15 at 14:56 3 my error was that i was invoking the script with sh script_name.sh, so was Oracle: Does enabling a PK rebuild its index? Syntax Error Unexpected In Unix 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 Line 1: Syntax Error: Unexpected Word (expecting ")") This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant.

The time now is 06:03 PM. check over here rg3 View Public Profile View LQ Blog View Review Entries View HCL Entries Visit rg3's homepage! Perderabo View Public Profile Find all posts by Perderabo

« Previous Thread | Next Thread » Thread Tools Show Printable Version Email this Page Subscribe to this Thread Display Modes 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 Bash Function Syntax Error Unexpected

Are two sequences equal if the sums and sums of squares are equal? I have not touched the files in question with any DOS or Windows tool at all. Some sh interpreters support arrays, only ksh88 (not ported to Linux AFAIK) and some older pdksh variants would support a[index]=value and not a=(x y). http://lebloggeek.com/syntax-error/syntax-error-unexpected-expecting-ruby.html 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.

When your mind reviews past events Should non-native speakers get extra time to compose exam answers? Ksh Unexpected Unfortunately, you died SSH makes all typed passwords visible when command is provided as an argument to the SSH command Can unconnected inputs make an IC get warm? share|improve this answer answered Jan 7 at 15:02 joepd 1,381615 Even if sh is a symlink to bash it will behave differently when invoked as sh –Eric Renouf Jan

Thanks for the explanation it's helped a lot and will be very useful to know in the future too. –kemra102 Aug 18 '12 at 12:25 Let me add that

How does a migratory species advance past the Stone Age? Is it bad to finish job talk in half an hour? n

New 'X' desktop is raspberrypi:1

Creating default startup script /home/pi/.vnc/xstartup
Starting applications specified in /home/pi/.vnc/xstartup
Log file is /home/pi/.vnc/raspberrypi:1.log
Now we want vncserver desktop to run at boot Is Not Expected The backquote on the second line will be expected to have a mate somewhere.

Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started bash scripts backup syntax share|improve this question edited Sep 7 '14 at 20:38 Braiam 39.2k1693154 asked Sep 7 '14 at 17:04 Hamza 16113 4 I think DROPBOX="/root/Dropbox/Backups should be DROPBOX="/root/Dropbox/Backups". 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 weblink UNIX is a registered trademark of The Open Group.

Here is my problem: When I try to run the script I get this error: ./backup.sh: 66: ./backup.sh: Syntax error: Unterminated quoted string If anyone could help me with this would UNIX is a registered trademark of The Open Group. bash shell ubuntu shell-script share|improve this question edited Aug 18 '12 at 12:08 Gilles 373k696801129 asked Aug 18 '12 at 11:37 kemra102 4731613 The shebang is really in line You're using a single quote to denote the contents of the alias but using the same single quote within the alias definition...I would think it would be breaking in and out

Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. The MYSQL, MYSQLDUMP and GZIP variables refer to the programs used to execute various commands. more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Perhaps you did the same thing?

What kind of bugs do "goto" statements lead to? And the line could be anywhere in the file. share|improve this answer answered Aug 18 '12 at 12:08 Gilles 373k696801129 1 Thanks clearly a gap in my knowledge, I don't script much so wasn't aware of that!