Home > Syntax Error > Syntax Error Got ( Expecting Newline

Syntax Error Got ( Expecting Newline

Privacy Policy Terms and Rules Help Connect With Us Log-in Register Contact Us Forum software by XenForo™ ©2010-2015 XenForo Ltd. Word for nemesis that does not refer to a person An electronics company produces devices that work properly 95% of the time Grass grows through the floor of my building Resubmitting The shebang line must be the very first thing in the file. Schengen visa to Norway to visit my wife refused Remnants of the dual number How to write an effective but very gentle reminder email to supervisor to check the Manuscript? navigate here

Still getting the error. –soufrk Sep 1 at 6:58 @soufrk Is it sonarqube.sh or sonar.sh? There is nothing about this line running as sudo that should stop it working to my knowledge, does anyone have any ideas? Since you use bash features, the first line of the file must be #!/bin/bash or #!/usr/bin/env bash. Terms of use | Privacy policy Register zLog Portal Board index Contact us Delete all board cookies About Us Privacy Policy All times are UTC+05:30 2,124,986 Page visits Copyright © 2013

Now quitting..." exit 2 fi echo "Press ENTER to continue..." read key } main() { install_pkg "dosbox virtualbox" exit $? } main When I try to run INSTALL.SH the following error Resubmitting elsewhere without any key change when a paper is rejected Feynman diagram and uncertainty Deep theorem with trivial proof Why does MIT have a /8 IPv4 block? 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

Can a creature with 0 power attack? How do I reassure myself that I am a worthy candidate for a tenure-track position, when department would likely have interviewed me even if I wasn't? 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. Just click the sign up button to choose a username and then you can ask your own questions on the forum.

For example:Code: Select allfromdsn '//DD:MYPDS(TMP)' > tmp.dat
fromdsn "//DD:MYPDS(TMP)" > tmp.dat
fromdsn //DD:MYPDS\(TMP\) > tmp.dat Note that in the above examples, the single quote, double quote, and backslash characters You can easily confirm this is with a simple example: # #!/bin/bash offfset=(`ls`) echo $offset Running this script with sudo will raise a syntax error in recent versions of Ubuntu and command: dos2unix script_file.sh script_file.sh share|improve this answer edited Apr 24 '15 at 5:31 muru 19.2k33370 answered Apr 24 '15 at 5:26 M Sarfraz 1 add a comment| up vote -1 down Is including the key as AAD actually dangerous?

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages. Ron Natalie, Nov 24, 2004 #2 Advertisements Rolf Magnus Guest Deepak wrote: > Hi friends i tried to compile following programs and link it, i got an > error like > Will a tourist have any trouble getting money from an ATM India because of demonetization? Executing the batch export and import metadata utilities on Z/OS might result in a syntax error when one or more command options contain special characters, such as an embedded blank or

When dash reaches line 68, it sees a syntax error: that parenthesis doesn't mean anything to it in context. Advertisements Latest Threads For Loop netOwen posted Nov 29, 2016 vhdl code chandan khan posted Nov 29, 2016 Altera Fpga De2 115 veek development kit chandan khan posted Nov 29, 2016 Operating System and Release InformationProduct FamilyProductSystemProduct ReleaseSAS ReleaseReportedFixed*ReportedFixed*SAS SystemSAS Metadata Serverz/OS9.219.2 TS2M2* For software releases that are not yet generally available, the Fixed Release is the software release in which the zLog Board index Glossary FAQ Search Unanswered topics Active topics Disclaimer The team Downloads Rules Login Register Unanswered topics Active topics Disclaimer Glossary FAQ Search The team Downloads Rules Mainframe, MVS

Word that includes "food, alcoholic drinks, and non-alcoholic drinks"? check over here BlackHelicopter, Feb 11, 2013, in forum: VHDL Replies: 2 Views: 1,081 BlackHelicopter Feb 12, 2013 Loading... your help is really appreciated.. bash shell ubuntu shell-script share|improve this question edited Aug 18 '12 at 12:08 Gilles 382k727031146 asked Aug 18 '12 at 11:37 kemra102 4781613 The shebang is really in line

Unix & Linux Stack Exchange works best with JavaScript enabled Loading... 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 Yes, my password is: Forgot your password? his comment is here Not the answer you're looking for?

Powered by phpBB Forum Software © phpBB Limited Time: 0.434s | Queries: 35 | Peak Memory Usage: 19.57 MiB Login • Register Username: Password: I forgot my password Remember An expensive jump with GCC 5.4.0 What are the downsides to multi-classing? An expensive jump with GCC 5.4.0 VT-x is not available, but is enabled in BIOS What are the ground and flight requirements for high performance endorsement?

Is there any financial benefit to being paid bi-weekly over monthly?

On Ubuntu, /bin/sh is dash, a shell designed for fast startup and execution with only standard features. share|improve this answer answered Aug 18 '12 at 12:08 Gilles 382k727031146 1 Thanks clearly a gap in my knowledge, I don't script much so wasn't aware of that! 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 more hot questions question feed lang-sh about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation

Sometimes some hidden characters are there in the source. The request cannot be fulfilled by the server The request cannot be fulfilled by the server Support Submit a Problem Update a Problem Check Problem Status SAS Administrators Security Bulletins When entering batch export and import commands (ImportPackage or ExportPackage) on z/OS systems, you might need to precede special characters with a backslash character (\). weblink UNIX is a registered trademark of The Open Group.

You'll be able to ask questions about coding or chat with the community and help others. Unable to understand the details of step-down voltage regulator Why are terminal consoles still used?