Results 1 to 7 of 7
Hello,
there's probably some simple solution to this problem but i don't know it. I have tried Dos2unix....
- 09-18-2011 #1Just Joined!
- Join Date
- Nov 2010
- Posts
- 3
Shell script error " syntax error: unexpected end of file "
Hello,
there's probably some simple solution to this problem but i don't know it. I have tried Dos2unix.
- 09-18-2011 #2Just Joined!
- Join Date
- Aug 2011
- Posts
- 48
Check to see that your () and {} are all matching
- 09-18-2011 #3Just Joined!
- Join Date
- Aug 2007
- Posts
- 1
bash debug
try running the script with the -x switch like this:
bash -x ./scriptname
then it will print out every line before it runs the command, if it runs no commands at all check the first line looks like #!/bin/sh or whatever shell its written in for start
lemme know what it outputs
- 09-19-2011 #4Linux User
- Join Date
- Jan 2005
- Location
- Saint Paul, MN
- Posts
- 262
- 09-19-2011 #5Just Joined!
- Join Date
- Nov 2010
- Posts
- 3
Thank you all.
don't worry I have solved the error.
- 09-19-2011 #6Just Joined!
- Join Date
- Nov 2010
- Posts
- 3
How do I mark this thread solved?
- 09-19-2011 #7Linux Engineer
- Join Date
- Feb 2005
- Posts
- 1,044
You write a post saying what the problem was, how you found it, and what you did to fix it. Then it's helpful to others.


Reply With Quote
