[raspberry-vi] Re: bash scripts on pi/jessie

  • From: Scott Granados <scott.granados@xxxxxxxxx>
  • To: raspberry-vi@xxxxxxxxxxxxx
  • Date: Tue, 11 Jun 2019 10:13:54 -0400

Is there a reference to perl or anything else in the script, this sounds like a 
path error to me although sorry my first guess was off.


On Jun 11, 2019, at 1:40 AM, Tom Fowle <wa6ivgtf@xxxxxxxxxxx> wrote:

Other scripts with #!/bin/bash
work.  
Thanks
Tom Fowle

On Tue, Jun 11, 2019 at 01:03:57AM -0400, Scott Granados wrote:
Nope you just have the wrong path to bash I bet.

At the head of your script should be something like
#!/bin/bash

That???s the path to bash, if bash is elsewhere change the path in the shell 
variable at the top to the correct value.  

Thanks


On Jun 11, 2019, at 12:49 AM, Tom Fowle <wa6ivgtf@xxxxxxxxxxx> wrote:

We tried the below lookup.ssh script on our pi 3 under jessie 
put it in pi/bin and did the usual
sudo chmod 777 bin/lookup.ssh

doing
lookup.ssh wa6ivg
got "bad interpreter no such file or directory.
Other similar scripts work and the lookup.ssh script works
on this jessie box.

Missing the obvious I suppose.
is there anything weird on the pi about bash scripts?
Thanks
tom Fowle WA6IVG
=========================================================== 
The raspberry-vi mailing list 
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views 
and attitudes expressed by the subscribers to this list do not reflect 
those of the Foundation.

Mike Ray, list creator, January 2013


=========================================================== 
The raspberry-vi mailing list 
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and 
attitudes expressed by the subscribers to this list do not reflect those of 
the Foundation.

Mike Ray, list creator, January 2013

=========================================================== 
The raspberry-vi mailing list 
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and 
attitudes expressed by the subscribers to this list do not reflect those of 
the Foundation.

Mike Ray, list creator, January 2013


=========================================================== 
The raspberry-vi mailing list 
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and 
attitudes expressed by the subscribers to this list do not reflect those of the 
Foundation.

Mike Ray, list creator, January 2013

Other related posts: