Find the answer to your Linux question:
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....
  1. #1
    Just 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.

  2. #2
    Just Joined!
    Join Date
    Aug 2011
    Posts
    48
    Check to see that your () and {} are all matching

  3. #3
    Just 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

  4. #4
    Linux User
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    262
    Quote Originally Posted by histrungalot View Post
    Check to see that your () and {} are all matching
    also check that the `, ', " are also matched and also the [] are matched as well.

  5. #5
    Just Joined!
    Join Date
    Nov 2010
    Posts
    3

    Thank you all.

    don't worry I have solved the error.

  6. #6
    Just Joined!
    Join Date
    Nov 2010
    Posts
    3
    How do I mark this thread solved?

  7. #7
    scm
    scm is offline
    Linux 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...