Results 1 to 5 of 5
Hello,
I wrote a small shell script and this script should use the
Code:
#!/bin/bash
Then I uploaded the shell script onto a remote pc and tried to start the ...
- 05-15-2007 #1Just Joined!
- Join Date
- May 2007
- Posts
- 3
Find out which bash is in use
Hello,
I wrote a small shell script and this script should use the
Then I uploaded the shell script onto a remote pc and tried to start the script. But there was the error message, that bin/bash is a bad interpreter.Code:#!/bin/bash
How can I find out, which bash is in use oder available on the remote pc?
- 05-15-2007 #2Just Joined!
- Join Date
- May 2007
- Posts
- 3
I found a solution. No more answers are neccessery
.
- 05-15-2007 #3
So what is the solution? If you find out a solution to something, its important that you share with everyone else. One method I use on BSD is to do something like
instead ofCode:#!/usr/bin/env bash
Code:#!/bin/bash
- 05-15-2007 #4
Also, on the machine you're running the script on try which bash
Bash is popular in the Linux world, but it's not always installed on other unixes. If it's there, that will give you the FQ path.
- 05-16-2007 #5Just Joined!
- Join Date
- May 2007
- Posts
- 3


Reply With Quote
