Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, When i try to run a script it is giving me an error: bash:ELF:command not found. what is the error?...
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    3

    ELF: command not found

    Hi,

    When i try to run a script it is giving me an error:

    bash:ELF:command not found.

    what is the error?

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    Please take the script that's giving you the error, trim it down so it's as small as possible but still getting the error, and post that script.
    --
    Bill

    Old age and treachery will overcome youth and skill.

  3. #3
    Just Joined!
    Join Date
    Nov 2006
    Posts
    3
    Any small script....which contains only one line like..

    echo "My name is XYZ"

    is also throwing this error message.

  4. #4
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    Are you the administrator for this system? In other words, is this your system, or does it belong to someone else who administers it for several people, like a school or an employer?

    That may sound like a weird question, but the answer will determine what my next questions are.
    --
    Bill

    Old age and treachery will overcome youth and skill.

  5. #5
    Just Joined!
    Join Date
    Nov 2006
    Posts
    3
    yes. this is a employers system. i am just a user in this system.

  6. #6
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    As I understand it, any bash shell script you run, even a one-liner, gives you that error message.

    The next question is: what happens with other employees using the system logged in under a user name different from yours? Do they have the same problem?

    If they do, then go to the administrator of the system and see whether bash is properly installed.

    If they don't, then look at the content of .bash_profile, .bash_login, .profile, and .bashrc in your home directory.

    If other users don't have your problem and you don't see anything funny in those files, then post the content of those files here. (Most of them probably won't exist.)
    --
    Bill

    Old age and treachery will overcome youth and skill.

Posting Permissions

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