I doubt it's a lack of exit, . My guess is the numeric argument
will bea a number you're supposed to put after one of the flags or
command line options (the letter hypen combinations). Likely one
of those requires that you add a number before going on to put in
another option. For example, the head command in UNIX is used to
print out the first part of some output. Yuo can specifiy the
number of lines with the -n flag or option, with the format like
this:
head -n 2
If you leave off the 2, you will get an error. I haven't actually
sat with your command, though, so I'm just giving you a place to
look in your debugging.
Patrick
<kperry@xxxxxxxxxxxxx> writes:
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