Unix Shell - How to setup a simple shell script? "bad interpreter: No such file or directorybi

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > December 2007 > How to setup a simple shell script? "bad interpreter: No such file or directorybi





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to setup a simple shell script? "bad interpreter: No such file or directorybi
Matthew Lincoln

2007-12-10, 1:20 pm

I wanted to setup a simple shell script "test3" with some commands inside.

I started the script with

#!/bin/bash
.....

When I call the script I got the error:

: bad interpreter: No such file or directorybin/bash

Hmm, why is there no such file ?

If I type at the shell:

echo $SHELL

then I got the reply:

/bin/bash

Moreover /bin/bash exists!!

So how do I setup a shell script otherwise?

Am I forced to append a ".sh" extension?

Matthew
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com