Home > Syntax Error > Perl Syntax Error Near Unexpected Token

Perl Syntax Error Near Unexpected Token


Counterintuitive polarizing filters Find the super palindromes! Command is: sh -c '(perl -pi -e \'print "TextContents" if $.==13\' "/usr/local/etc/stunnel/stunnel.conf")' bash: syntax error near unexpected token `"/usr/local/etc/stunnel/stunnel1.conf")'' If someone can help me, it would be great! Was the Boeing 747 designed to be supersonic? The time now is 09:57 PM. his comment is here

current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Join our community today! Not the answer you're looking for? Why do units (from physics) behave like numbers?

Perl System Syntax Error Near Unexpected Token ('

Ps please post your distro in your profile. say for @Config{...} share|improve this answer edited Jan 13 '14 at 16:20 answered Jan 13 '14 at 15:57 Joseph R. 21.8k24486 I have tried that but am still getting What shape is a Calippo? Can you be more specific?

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. asked 1 year ago viewed 386 times active 1 year ago Related 1Perl one liner regex throwing bash: syntax error near unexpected token `)'431Why is this program valid? 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 Based on your clarification (for which, thanks), you're going to have to trouble shoot in place or in a dummy test script.

This is exact way i was trying to do. [mycom7] # ./ctopo.sh um_test1 [(1,2),(2,1)] bash: syntax error near unexpected token `(' ctopo.sh script takes two strings as input, here first one Sh: -c: Line 0: Syntax Error Near Unexpected Token `(' Perl LinuxQuestions.org > Forums > Non-*NIX Forums > Programming syntax error near unexpected token in bash using perl User Name Remember Me? Your first change is from invoking sh to invoking bash. http://stackoverflow.com/questions/15770014/syntax-error-near-unexpected-token-perl-code archtoad6 View Public Profile View LQ Blog View Review Entries View HCL Entries View LQ Wiki Contributions Visit archtoad6's homepage!

Next, why the parentheses? How to heal religious units? Thesis reviewer requests update to literature review to incorporate last four years of research. Counterintuitive polarizing filters Has the acronym DNA ever been widely understood to stand for deoxyribose nucleic acid?

Sh: -c: Line 0: Syntax Error Near Unexpected Token `(' Perl

Page 1 of 2 1 2 > Search this Thread 06-21-2007, 12:10 AM #1 kambrish LQ Newbie Registered: Jun 2007 Location: India Posts: 12 Rep: syntax error near Search this Thread 07-09-2010, 12:16 AM #1 rc5gd LQ Newbie Registered: Jul 2010 Posts: 3 Rep: bash: syntax error near unexpected token `(' Hi all, I am new to Perl System Syntax Error Near Unexpected Token (' If so, you want to use [\'\"], which can be simplified to ['"]. " Syntax Error Near Unexpected Token `('" Bash I think you meant [\'\"], which can be simplified to ['"]. –ikegami Jun 10 '15 at 16:43 | show 1 more comment 3 Answers 3 active oldest votes up vote 0

perl share|improve this question asked Dec 20 '13 at 14:44 user3066819 94314 closed as off-topic by geoffspear, Hunter McMillen, chepner, amon, brian d foy Dec 20 '13 at 15:17 This question http://setiweb.org/syntax-error/php-syntax-error-unexpected-t-else.php This prevents this question from coming up as unanswered. –tripleee Jun 11 '15 at 4:09 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign and (), and that can lead to a complicated mess of backslashes. 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

How much interest did Sauron have in Erebor? Do I need to do this? In fact why are you using either? -- Can't you just put the perl command directly into the script? http://setiweb.org/syntax-error/perl-syntax-error-redirection-unexpected.php How to prove that a paper published with a particular English transliteration of my Russian name is mine?

I will get back to you soon. If I run the command directly on command prompt, its running fine. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration.

How to explain the existence of just one religion?

Fixed? Hi Grail. 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. See QUOTUNG section in the manual: Enclosing characters in single quotes preserves the literal value of each character within the quotes.

You should be aware of the way bash works with single and double quotes. In fact, the second ? Words that are both anagrams and synonyms of each other What does 'tirar los tejos' mean? check over here The string 'str'"in"'g' in the shell is equal to 'string' after quote removal; you can similarly use adjacent single-quoted and double-quoted strings to build your script ...

Unmatched ) in regex; marked by <-- HERE in m/\* Members= (\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)*([,])*) <-- HERE *$/ at -e line 1. –oljones Mar 16 '12 at 21:02 There's no way to don't work with “use 5.014” - why?2Why shift the array in the &max subroutine example in Learning Perl, 6th ed., ch. 40Learning Perl (Chapter 5.1) Issues4Why does “last” behave differently in You'll have to explicitly declare the interpreter in that case by adding a shebang line at the top: Code: #!/usr/bin/perl (or wherever your Perl interpreter resides) Remove advertisements Where's the 0xBEEF?

Per ur queries: Did you mean "from shell" to mean "inside a script"? ==> Yes!! 2nd, why are you using sh -c, rather than bash -c, your script is, after all, Why shared_timed_mutex is defined in c++14, but shared_mutex in c++17? Hope this helps. As it's currently written, it’s hard to tell exactly what you're asking.

However, you cannot escape single quotes inside single quotes easily; a common workaround in Perl strings is to use the character code \x27 instead. Either write it on 1 line or use '\' at the end of the 1st line, which bash will recognise as a line continuation. Does the code terminate? Join them; it only takes a minute: Sign up Why won't this example from 'Learning Perl 6th Edition' run?