LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-18-2011, 07:06 AM   #1
danishgambit
LQ Newbie
 
Registered: Sep 2009
Location: glasgow, scotland
Posts: 25

Rep: Reputation: 0
strange error when trying to run script


Morning Linux people,

when trying to run a script, I get the following message:
ELF: command not found

however, when I rename the script it works fine.

The script was named hltest when it was producing the error message, but just renaming it to hltest2 lets it run fine.

Any ideas or suggestions as to why this could be happening would be useful, as I couldn't find much information about it.

Regards,

Danish.
 
Old 08-18-2011, 01:37 PM   #2
goossen
Member
 
Registered: May 2006
Location: Bayern, Germany
Distribution: Many
Posts: 224

Rep: Reputation: 41
It's because hltest is a binary installed with your linux distro.
Code:
$ which hltest
/usr/bin/hltest
You must rename the script or use the full path to execute.
 
Old 08-23-2011, 06:41 AM   #3
danishgambit
LQ Newbie
 
Registered: Sep 2009
Location: glasgow, scotland
Posts: 25

Original Poster
Rep: Reputation: 0
Morning Goosen,

thanks for that. Problem solved, and I'll remember that for future reference.

Regards

DG.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange error messages on backup script ahwm Linux - Server 3 09-20-2010 12:47 PM
Strange issue, unable to run configure script for libptp posix_memalign Linux - Software 3 06-25-2010 10:49 PM
Strange script error - any ideas (bash hanging) bagpussnz Linux - General 1 01-30-2009 11:29 PM
error when tying to run python script(bash error?) shanenin Programming 5 01-10-2006 11:01 AM
soulseek, strange error when run. mindfestival Linux - Software 1 05-26-2004 03:18 PM


All times are GMT -5. The time now is 06:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration