Syntax Error: Unterminated Quoted String Python
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 Browse other questions tagged bash shell quoting escape-characters or ask your own question. Note the .split.first part, which I'd guess selects LESS='--chop-long-lines from your core.pager config: pager = ENV['GIT_PAGER'] || `git config --get-all core.pager`.split.first || ENV['PAGER'] || 'less -isr' Given the output syntax of 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 check over here
GitHub member mislav commented May 6, 2012 Can't repro on Ubuntu 9.10 (ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux]) @tkf More information would be invaluable. Disproving Euler proposition by brute force in C Can a Grappled Monk viably use Open Hand Technique to end the grapple? I want to copy a file to another server, hence I wanted to use scp. DBS="$($MYSQL -u $SQLUSER -h $SQLHOST -p$SQLPASS -Bse 'show databases')" # Now let's dump them to .sql files and put them in our backup directory. http://askubuntu.com/questions/521207/syntax-error-unterminated-quoted-string
Syntax Error: Unterminated Quoted String Python
Feel free to edit, or adopt into your answer. –tripleee Aug 31 '13 at 13:56 add a comment| up vote 0 down vote Looks like your Python program was parsed like thanks for pointing me in the right direction! –klarezz Mar 13 '15 at 22:20 add a comment| up vote 0 down vote accepted The main error here is thinking that the I should actually have noticed this earlier as the vim editor coloring was showing that the string was not closed.
- Will retract my close vote if you can trim it down to a minimal example. –Chris Martin Apr 11 at 7:51 @ChrisMartin, I've edited my code keeping minimal code.
- Not the answer you're looking for?
- Results 1 to 4 of 4 Thread: Getting "Syntax error: Unterminated quoted string" on execution.
- Re: Getting "Syntax error: Unterminated quoted string" on execution.
- The Rule of Thumb for Title Capitalization I've just "mv"ed a 49GB directory to a bad file path, is it possible to restore the original state of the files?
- sized integer types # if [ -f doc/lamebus.html ]; then SRCDIR="" else SRCDIR=`echo "$0" | sed 's,[^/]*$,,` fi while [ "x$1" != x ]; do case "$1" in --help) cat <
I have no clue how to copy a file to another server in Python. –Mayank Porwal Apr 11 at 8:53 @MayankPorwal filepath=$1 should be filepath="$1", etc. How to describe very tasty and probably unhealthy food DDoS: Why not block originating IP addresses? mkdir $BACKUP # DON'T EDIT ANYTHING BELOW THIS LINE #---------------------------------------------------------------- # Now let's start! # Let's get the databases that we want to backup. Phantomjs Syntax Error Unterminated Quoted String CPU type # 3.
badboy commented Jun 25, 2013 You should have nexer expected /bin/sh to be /bin/bash, as bash executed as sh will behave more like a fully-compatible POSIX-shell anyway (excluding some bash-specific things) Docker Syntax Error: Unterminated Quoted String Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Getting "Syntax error: Unterminated quoted Moreover, if that's the case, then @mislav should be able to reproduce this by installing dash. http://stackoverflow.com/questions/18544112/why-i-got-sh-1-syntax-error-unterminated-quoted-string-when-i-run-my-python This site is not affiliated with Linus Torvalds or The Open Group in any way.
Can you provide more information how to reproduce this issue using plain phantomjs? Makefile Syntax Error: Unterminated Quoted String What exactly is a "bad" "standard" or "good" annual raise? In a World Where Gods Exist Why Wouldn't Every Nation Be Theocratic? Thanks!
Docker Syntax Error: Unterminated Quoted String
I've tried running it as root and as regular user. In the meantime - here's the environment, let me know if there's any glaring issues: Node 0.12 64bit Amazon Linux 2015.03 v2.0.0 running Docker 1.6.2 (AWS Elastic Beanstalk) wilmoore commented Oct Syntax Error: Unterminated Quoted String Python On Debian and derivatives, /bin/sh can be dash; many packages break, but it's a bug in those packages. @tkf: can you check which shell is your /bin/sh? Syntax Error Unterminated Quoted String Shell Script I've just "mv"ed a 49GB directory to a bad file path, is it possible to restore the original state of the files?
How to apply a constant function to a vector of values? Syntax Error: Unterminated Quoted String Heroku How is being able to break into any Linux machine through grub2 secure? shellcheck.net is a great tool for checking such things. –Biffen Apr 11 at 9:16 | show 2 more comments 1 Answer 1 active oldest votes up vote 2 down vote accepted
Approximation of the Gamma function for small value What are the difficulties of landing on an upslope runway more hot questions question feed lang-bsh about us tour help blog chat data
The time now is 04:55 PM. How to explain the use of high-tech bows instead of guns What does "Game of the Year" actually mean? I can read hub manual by: sed '1,/__END__/d' hub | groff -Wall -mtty-char -mandoc -Tascii | less Thanks, it is still not fast but far better than accessing github for README. Syntax Error: Unterminated Quoted String Android Duh!.
why backup-spsite get a backup much larger than $site.usage.Storage Do Germans use “Okay” or “OK” to agree to a request or confirm that they’ve understood? I'm trying to configure System/161 for OS/161 (the virtual machine for a study operating system for academical purposes). asked 2 years ago viewed 24649 times active 8 months ago Related 0How do I solve this “unexpected '}' syntax error” in my bash script?0Syntax error on python 2.7.31Syntax Error while http://internetmairie.com/syntax-error/501-5-5-2-rcpt-to-syntax-error.html I wonder if it behaves differently on your platform.
C compiler # 4. We'll need these for later. # The webserver's datafiles: WEBDIR="/var/zpanel/hostdata/" # Where do we want the backup to go? (SET THIS - IT'S A TEMP FOLDER) BACKUP="/root/backup-temp" # Where is our sized integer types # if [ -f doc/lamebus.html ]; then SRCDIR="" else SRCDIR=`echo "$0" | sed 's,[^/]*$,,` fi #--------------------SNIP------------------------ In the else part of that if statement, there's an opening single Could you please help now? –Mayank Porwal Apr 11 at 8:51 @Biffen, What do you mean when you say unquoted variables in shell script?
Reload to refresh your session. I don't know how on EARTH you noticed that, but thanks a lot! help!' rm -f __conf* exit 1 fi ############################################################ echo -n "Checking for -lnsl..." cat >__conftest.c <
rm $BACKUP/* # Job well done! # Have a beer and relax! Find all posts by DukeNuke2
Maybe /bin/sh --version? asked 3 years ago viewed 9173 times active 2 years ago Linked 567 Why do people write #!/usr/bin/env python on the first line of a Python script? 396 How to run I'll bake another release soon, but in the meantime you can build the script from master with rake standalone (or by brew upgrade hub --HEAD with Homebrew) mislav closed this Jun up vote 1 down vote favorite I want to count how many lines of code I have written.
Browse other questions tagged python shell or ask your own question. deleting folders with spaces in their names using xargs Word/expression for a German "Ausflugscafé" - a cafe mainly catering to people taking a walk Where did I find these numbers? If those answers do not fully address your question, please ask a new question. 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
Approximation of the Gamma function for small value The Last Monday DDoS: Why not block originating IP addresses? tkf commented May 7, 2012 I did mv .bashrc .bashrc.tmp, open new bash instance, did the three line code above and got the same result.