Questions tagged [unexpectendoffile]
50 questions
0
votes
1 answer
Unexpected end of file in while loop in bash
I am trying to write a bash script that will do the following:
Take a directory or file as input (will always begin with /mnt/user/)
Search other mount points for same file or directory (will always begin with /mnt/diskx)
Return value
So, for…

user2328273
- 868
- 3
- 12
- 22
0
votes
1 answer
Unexpected $end.
I'm making a Register form with PHP and MySQL (PHPMyAdmin), and when I open the page on the browser (Mozilla Firefox), i get
Parse error: syntax error, unexpected $end in line 71

Adrià
- 207
- 1
- 4
- 12
0
votes
1 answer
Unexpected End of File, not sure why
I'm running into "Unexpected End of File" and I'm not sure why. I'm sure it's something simple but I haven't figured it out yet.
Any help or suggestions would be greatly appreciated.
Here is my code, Thank You.

Joseph Merrill
- 3
- 1
0
votes
2 answers
Find a file with today's date as the filename
I want to find a file with today's date as the filename in Linux.
CONFIG="/usr/local/KDS/etc/psp.conf
#result=`find -name $CONFIG.`date +%Y%m%d``
result=`find -path $CONFIG -name ".psp.conf.`date +%Y%m%d`"`
#$(date +%Y%m%d)
if [[$result -eq…
0
votes
1 answer
My program comes back with either "Unexpected EOF while parsing" or "Expected indented block" both as syntax errors
Here is a small terminal-style program I had been working on, but stopped because of issues with the code.(Written in Python 3.4.1) Could anyone help with this?
import time
import sys
import os
#This next part restarts the program in case of invalid…
0
votes
2 answers
Problems at declaring sigmoid function
I am testing the coding for number recognition. This is my source code.
P/s : i edited my coding. this is the full coding in my main. I tried adding public/protected/private for the sigmoid function but the errors keep adding up.
import…

NHNK
- 1
- 1
0
votes
0 answers
JSON Parser End Of File Error
I have this program, sending request to receive weather information from the web in JSON format. I will sending one request per city in a for loop. However after the first JSON is received and parsed whenever it tries to parse the second one it…

igalbenardete
- 207
- 2
- 12
0
votes
1 answer
Yii Framework syntax error, unexpected end of file
I know parse error and such things are programmers 101, but I cant find whats wrong with the file and the error "syntax error, unexpected end of file"
Following the tutorial helps me a lot getting to know php and Yii, but maybe the error isnt in…

K213
- 311
- 6
- 19
0
votes
1 answer
Unexpected end in functions.php file - Wordpress
I have been dealing with this issue all day long, and I have no idea how to remedy it.
I have searched for the issue on SO and have found my problem has occured to other people here. I have tried to the best of my ability to follow the steps that…

Anthony
- 3
- 1
- 3
0
votes
1 answer
Java SSLSocket what to do after read returns -1?
I'm using a java server to connect to a browser with secure websockets. All works fine with the connect, but many times i get an unexpected -1 result from socket.in.read(buffer,off,len), this happens also in the middle of a frame. Normally i close a…

Bas Goossen
- 459
- 1
- 7
- 20
0
votes
1 answer
Python script stops processing when unexpected EOF loop doesn't return to next file
I have a script which reads in a number of files in a directory with glob, it then splits them line by line into new files based on the dates found on each line in a particular json field:
Here's the script which works to a point:
import json
import…

secumind
- 1,141
- 1
- 17
- 38
-1
votes
2 answers
Unexpected end of file - i cant find the issue
Im getting the typical unexpected end of file
i cant see what I'm missing can someone else please help i've gone code blind

Chris Yates
- 65
- 10
-1
votes
1 answer
NodeJS - Promise callback response [SyntaxError: Unexpected end of input]
I created the following NodeJS function.
The issue I'm getting is, when I'm executing this code like:
someFunc(parameter)
.then(function(doSomething){
//do something here, which works fine here.
})
//The following function works and is very…

AKS
- 16,482
- 43
- 166
- 258
-1
votes
3 answers
Syntax error, unexpected end-of-file
I have a script that is throwing this error.
This usually means there is a loop (like an if or do) that is not correctly ended, or there are too many end clauses. I can't find the issue. Any good tips on how to identify this kind of syntax error?…

missscripty
- 529
- 2
- 11
- 30
-1
votes
1 answer
PHP Parse Error - Unexpected End of File
I'm a complete newbie to programming and php, my code's throwing back an error saying there's an unexpected end to the file and I can't for the life of me see what's missing or there that shouldn't be. Can anyone spot…

TFrost
- 1
- 1