Ubuntu :: "syntax Error: Unexpected End Of File" With Source?
Aug 21, 2010I have a file :
Code:
if [ $# -lt 1 ]; then
pushd ~
[code]....
I have a file :
Code:
if [ $# -lt 1 ]; then
pushd ~
[code]....
I have been trying to get the following code to run.
Code:
However I am getting the following error:
Is there something that I am missing in the script? I have it as a unix file and tried to make sure that I did not have any extra characters.
I have compiled both gocr and subtitleripper from [URL] and I am running into a problem with one of the scripts run from subtitleripper: pgm2txt. The error is:
Code:
andrew@skamandros~/Desktop/Labyrinth/subtitles$ pgm2txt -f en fauno
/usr/bin/pgm2txt: line 165: unexpected EOF while looking for matching `"'
/usr/bin/pgm2txt: line 179: syntax error: unexpected end of file
Support for this program is not available and development has ceased a while ago so I have had a look at the script itself and I cannot see the error in syntax.
I have a bash script giving me the following error:
[Code]...
When I run it I am getting: ./svnup: line 61: syntax error: unexpected end of file Can't for the life of me figure out what is wrong. It's a script to export the latest revision from SVN to the web root folder and archive the previous version, basically.
I am a Novell (now defunct) CNE tring to learn Linux and am having a lot of trouble finding out where the WB 6-6 is wrong in the syntax for adding local4... the the syslog-ng config file. In the instructions there are discrepancies between commas and simi-comma, they are both in the statements in no particular order. there is no pattern to them. Here is what the book shows:
filter f_local4debug { level(debug) and facility(local4); };
When I try to input this in the Gnome terminal window to try and find out where it goes wrong I get the following: -bash: syntax error near unexpected token "(" If I can get the correct syntax I belive I can use the info to get past the rest of this portion of the lesson. I am desperate to learn Linux as the only jobs out there for a Novell CNE are migrations to MS, which really sucks, since MS really really sucks.
I'm trying to create a new directory using the mkdir command.
Code:
home@ubuntu:~$ mkdir <aicoursework>
bash: syntax error near unexpected token `newline'
that's the error that i keep getting, what am i doing wrong?
The following problem occurs to me, I'm creating a distribution (as a class project) for my school (I'm studying telecommunications and computer systems). I am following, in order to create the distribution, the manual that you can find on this page: [URL] But when I get to write:
[Code]...
find /opt/postfix/mail/email.com/~spam/~quarantine/ ( -iname * -o -iname .* ) ! -type p -exec grep -i -c admin@email.com {}; -xdev -print
When I do this command I receive this error message:
-bash: syntax error near unexpected token `('
I wrote a script to start portal.
Its start portal (not a problem)
Only getting following message:
This is the else before second logic
I'm trying to install the Sun Java plugin to use in Chrome. The installation seems to have gone well, but I have hit an error trying to create a symbolic link of the libnpjp2.so library in the plugins directory of Chrome.
When typing in "in -s /opt/java/jre1.6.0_26/lib/i386/libnpjp2.so" I get "Syntax error near unexpected token `in' ". I'm not sure what could be wrong, I'm in the right directory.
I am trying to build a script that runs on AIX, Solaris, and various flavors of Linux as well. It is very simple, or so I thought. I have the AIX and Solaris servers working well. Next I tried to get my workstation to run the script and it bombed. I am running Fedora 12 x86_64, but that isn't really important. I have various flavors of Linux. Some CentOS, RH, and even a Gentoo server. The script I have runs every hour on all servers. I can push out changes and install software with it, but the Linux WS won't run it.
Here is my script:
And here are the errors:
Is this just an issue with going between ksh and bash?
#by executing bash file
#!/bin/sh
sed -i 's/if (IEexec || domExec) document.write('<iframe id="IdMyIframe" '+IframePropriedades+'></iframe>');//g' *.php
Output is:
line 4: syntax error near unexpected token `<'
line 4: 'sed -i 's/if (IEexec || domExec) document.write('<iframe id="IdMyIframe" '+IframePropriedades+'></iframe>');//g' *.php'
I'm fairly new to shell scripting and am having the hardest time figuring out why this simple script is giving me an error
The error is "syntax error near unexpected token `else'
I'm using TextEdit on OSX (sorry I'm limited to this). The only thing I can think of is that it's reading some return character and getting thrown off. I've tried saving the script using different encoding types but the same error pops up.
I also get an error at line 2 because it does not regonize as a command
Syntax Error Near Unexpected Token
View 2 Replies View RelatedI am new to shell scripting, bash specifically.
I am trying to run the following script:
Code:
When trying to execute I always get this error:
Code:
In case you need to know the permissions. Here is it:
Code:
I run the script using the following command:
Code:
Parse error: syntax error, unexpected '@' in C:xampphtdocsminippromail.php on line 8 .......its not recognizing the '@' symbol. heres the code im working with
<?php $receiver = myfriend@ourmail.co.in; $subject = wish; $content = Hi! My dear friend how are you.; $sender = myself@ ourmail.co.in ; $headers = From: $sender; mail($receiver,$subject, $content,$headers); echo Mail has been sent successfully.; ?>
I am trying to install vlc media player on my backtrack3 but when i am giving a command xvjf to extract bz2 file then
bash: syntax error near unexpected token `('
I'm new to php.
I wrote a basic php script using gedit:
Saved is as FirstPHP.php
Then I did a chmod 755 FirstPHP.php
And ran it. Got the following out put:
Why am I getting a syntax error? Am I missing something?
I got this script from website for inviting peoples to game and earning points easily ...but this seems not working and giving error..
View 4 Replies View RelatedI was going through this Lex/YACC tutorial: [URL]... and I was working along with it. The Lex examples worked fine, but the YACC one quit white compiling
[Code]...
I have a .sql file that is too large and needs to be uploaded via ssh.I know the commands to do this but my username password has parenthesis in it i.e. (password)So I am getting -bash: syntax error near unexpected token.
View 2 Replies View RelatedI install nfs-common,nfs-kernel-serverNow I can not use
PHP Code:
# home 192.168.1.10(ro,no_root_squash)
I get
Quote:
bash: syntax error near unexpected token `('
when I want to share a folder
Used svn co to fetch latest version of rtorrent. Ran svn up in the trunk directory.
Now to compile libtorrent...
Code:
Similar with compiling rtorrent...
Code:
bash: make: command not found
Okay, first off I'm no hotshot programmer (and actually lack much familiarity with shell scripting) so apologies in advance if this problem is so trivial as to be irritating.
What I'm trying to do is drop the following command from either a shell script or a perl program. However, while it executes fine and does what it's supposed to when entered from the command line, I can't get it to work as a system call.
Here's the line:
Code:
When I drop it from a shell script like this:
Code:
I get the following:
Code:
If I try escaping the ()s with or ', I get this:
Code:
I've tried a bunch of other stuff to get it working (deleting the ()s, spacing them differently, etc) and looked around online for a solution, but I can't find anything that works.
I tried a shell script directly only after anything I tried to drop it from perl with `` or system() failed with the same errors.
I thought I'd make myself a bash script of sorts to download movie trailers, from a file where I manually dump the URL of each file on a separate line: file 'trailerlist':
[Code]...
I got install_ubuntulite_nouveau: line1: syntax error near unexpected token 'newline'
when running sudo bash install_ubuntulite_nouveau
When i compile xorg-1.7.2 on debian6 like this:
View 5 Replies View RelatedI have an ubuntu 10.10 server and want to run a script on it to check if a process is running. If it is not running, it will start the process and also write into a log file.
When running the script i get the following error message:
syntax error near unexpected token `else'
Here is my script.
Why do I get an error when trying to do a simple install command?I'm trying to install VMware player 3.1.0 on Ubuntu 9.10 After logging in to the terminal and changing directory to the folder containing the VM player bundle file, I used the following command:
sudo sh VMware-Player-3.1.0-261024.i386.bundle
It then prompts me for the password:
[sudo] password for administrator:
After entering the password it then returns the error:
VMware-Player-3.1.0-261024.i386.bundle: 110: Syntax error: newline unexpected
administrator@ubuntu:~/Documents/gnb1$
I am repeatedly getting error:
I need to pass the value of:
I am using #!/bin/bash
This command works on shell without any issue.