[raspberry-vi] Re: editing scripts

  • From: <kperry@xxxxxxxxxxxxx>
  • To: <raspberry-vi@xxxxxxxxxxxxx>
  • Date: Wed, 20 Jan 2021 19:21:23 -0500

As has already been said definitely use dos2unix.



-----Original Message-----
From: raspberry-vi-bounce@xxxxxxxxxxxxx <raspberry-vi-bounce@xxxxxxxxxxxxx>
On Behalf Of Glenn K0LNY
Sent: Wednesday, January 20, 2021 2:08 PM
To: raspberry-vi@xxxxxxxxxxxxx
Subject: [raspberry-vi] editing scripts

Hi All,
So I made my scripts in windows, and they don't run.
I ran it in the terminal, and the last line error reads:
:numeric argument required
I'm wondering if that is referring to that I left out the line at the end:
exit 0
Here's the file contents:
#!/bin/bash
rtl_fm -M am -f 027.185M -s 22k | play -t raw -r 22k -es -b 16 -c 1 -V1 -


This command works when I type it in.
I did chmod +x *.sh in the folders with the .SH files.
Thanks.

Glenn
=========================================================== 
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: