View the Most Wanted LQ Wiki articles.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-24-2004, 01:16 AM   #1
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Rep: Reputation: 30
bad interpreter????


i have a shell script that i wrote many months ago. now, when, i run it.... it throws this to me...

: bad interpreter: No such file or directory

so, how can i solve the problem...?? thanks
Old 09-24-2004, 01:39 AM   #2
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
Do you have the #!/bin/bash at the first line of the script?
Old 09-24-2004, 09:40 PM   #3
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
yes..i do
Old 09-25-2004, 01:31 AM   #4
Registered: Sep 2004
Distribution: OpenSuSe
Posts: 153

Rep: Reputation: 30
1. Try running as:

$ bash <your_script>

2. Check what comes up when you issue this:

$ which bash

This should get you started...
Old 09-25-2004, 06:21 AM   #5
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,191
Blog Entries: 4

Rep: Reputation: 464Reputation: 464Reputation: 464Reputation: 464Reputation: 464
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.


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
bad interpreter error zum Linux - Software 3 05-31-2005 11:01 AM
/bin/sh: bad interpreter mullog Linux From Scratch 1 06-09-2004 03:30 PM
sh = bad interpreter Comarez Linux - Newbie 3 01-11-2004 07:33 AM
script: bad interpreter... chunkymunky Programming 6 12-25-2003 10:58 PM
bad interpreter penzilsinc Linux - Newbie 5 06-26-2002 02:51 PM

All times are GMT -5. The time now is 09:46 AM.

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