interpreter files


 
Thread Tools Search this Thread
Operating Systems Linux interpreter files
# 1  
Old 11-16-2011
interpreter files

Can you explain me what is ment by interpreter files ??
Why and how they are used??
# 2  
Old 11-16-2011
Interpreter files are text files that are read in (interpreted) by the program specified on the first line. Gory details can be found here in wikipedia. Shell scripts, perl scripts, awk scripts, and so forth are all examples of interpreter files. Compare that to programs that are compiled from source code files into a 'proper' executable.

Note that the file extension serves no functional purpose in UNIX - their use is a legacy of people's time on the dark side :-).

Why and how are they used has caused more debates than I care to think about. I can say "it depends". When should you write a script v. write a program - it depends. Which scripting language should you use - it depends (just not csh). The one bit of advice I have is become familiar with numerous interpreters - perl, python, bash, ksh, awk to name a few. I am sure people can name a few more.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Shell BASIC interpreter(s)...

I am looking for a simple BASIC Interpreter written in a shell scripting language. For me something like this would be a great learning tool... After much goggle eyed Googling I came upon this:- https://gist.github.com/cander/2785819 It is small and I haven't tried it yet as I am at work... (6 Replies)
Discussion started by: wisecracker
6 Replies

2. Shell Programming and Scripting

Dynamically choosing the interpreter

Hi, Is it possible to choose the inerpreter conditionally. For example, if whereis bash returns /usr/bin/bash then i need to choose #!/usr/bin/bash else i need to use #!/usr/bin/sh. Is it possible to achieve in a shell script? Thanks (1 Reply)
Discussion started by: pandeesh
1 Replies

3. Shell Programming and Scripting

Bad Interpreter

Hi. My name is Caleb (a.k.a RagingNinja) form the whited00r forums. (Whited00r makes custom firmware for iOS devices). I have been learning and creating simple shells scripts. I have been recently using VIM for Windows or using VirtualBox to run the UBUNTU OS within VirtualBox to create my shell... (2 Replies)
Discussion started by: RagingNinja
2 Replies

4. Shell Programming and Scripting

Multiple interpreter declarations

Hi, I am writing a shell script that connects to a remote server and performs some tasks on the server and exits. Since i am using a ssh connection, i am using a "expect" utility to supply the password automatically (which is present within the script). In order to use this utility, i need to... (3 Replies)
Discussion started by: sunrexstar
3 Replies

5. Programming

Java Interpreter

Hello guys - do you have any sample program implementing UNIX commands in an interpreter with Java? I can look up the simple ones such "ls" etc and then write my own commands. I would appreciate it. (2 Replies)
Discussion started by: cmontr
2 Replies

6. Solaris

Help me find Python interpreter!!!

I just started learning python on and working on sun solaries, #!/usr/bin/env python Is not recognising the intrepreter on my sun solaries could any one please help me find this. Thanks - Ann:b: (8 Replies)
Discussion started by: Haque123
8 Replies

7. UNIX for Dummies Questions & Answers

m4 as script interpreter

#!/usr/bin/m4 when running m4 scripts with "#!/usr/bin/m4" they are executed properly, but "#!/usr/bin/m4" is printed out - how to avoid it? Thanks in advance. (5 Replies)
Discussion started by: Action
5 Replies

8. UNIX for Dummies Questions & Answers

an command interpreter

if somebody can help me pls. i need the source code for a shell which compiles C or java programs. i need a very short and simple one, just for the compiling part, in UNIX Respect (4 Replies)
Discussion started by: zlatan005
4 Replies

9. Programming

When I am writing my own interpreter...

While trying out my hand at writing an interpreter, I was wondering about a a few issues one of which is the following: When I run a command such as jobs in the shell, I get a list of all the background jobs that are running... But if I need my interpreter to run that command, how would I be doing... (34 Replies)
Discussion started by: Legend986
34 Replies
Login or Register to Ask a Question