Date: Thu, 5 Sep 2024 20:40:28 +0200 From: Michael Stiller <mstiller@me.com> To: bob prohaska <fbsd@www.zefox.net> Cc: freebsd-arm@freebsd.org Subject: Re: Path puzzle Message-ID: <CACE92A8-EA95-49B9-84F6-21450A7D2DF5@me.com> In-Reply-To: <Ztn6UmtXcImSvoDh@www.zefox.net> References: <Ztn3cv50nFDqWAme@www.zefox.net> <105EB88C-1438-4BC6-9561-A92B82743AA2@me.com> <Ztn6UmtXcImSvoDh@www.zefox.net>
next in thread | previous in thread | raw e-mail | index | archive | help
And /usr/bin/python3.11 exists and is executable? Best regards, Michael > On 5. Sep 2024, at 20:37, bob prohaska <fbsd@www.zefox.net> wrote: >=20 > On Thu, Sep 05, 2024 at 08:27:21PM +0200, Michael Stiller wrote: >> Hi Bob, >>=20 >> i guess the interpreter which should be in the first line after #! is = not found. >>=20 >> Please show the first few lines of the script using "head server_try" >=20 > bob@pelorus:~ % head server_try > #!/usr/bin/python3.11 > #+ > # Example use of Python=E2=80=99s ssl module: server-side. > # The code is written to avoid blocking on actual socket I/O, to make > # it easier to adapt to asynchronous usage. > # > # See the README for details on how to set things up to run this = script. > # > # Copyright 2022-2024 by Lawrence D'Oliveiro = <ldo@geek-central.gen.nz>. This > # script is licensed CC0 = <https://creativecommons.org/publicdomain/zero/1.0/>; >=20 > For completeness: > bob@pelorus:~ % echo $PATH > = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/home/bob= /bin:. > bob@pelorus:~ % =20 >=20 > Thanks for writing, >=20 > bob prohaska >=20 >>=20 >>> On 5. Sep 2024, at 20:24, bob prohaska <fbsd@www.zefox.net> wrote: >>>=20 >>> I've got a stable/14.1 system which declines to find programs >>> in the current working directory: >>>=20 >>> bob@pelorus:~ % ls >>> auth client_try public_html server_try ssl >>> bob@pelorus:~ %=20 >>> bob@pelorus:~ % ls -l server_try >>> -rwxr-xr-x 1 bob bob 8542 Sep 3 14:08 server_try >>> bob@pelorus:~ % ./server_try >>> ./server_try: Command not found. >>>=20 >>> I've tried adding . to my path, but that doesn't seem to help. >>>=20 >>> Server_try is a python script, if it's run using: >>>=20 >>> bob@pelorus:~ % python3.11 server_try >>> Traceback (most recent call last): >>> File "/usr/home/bob/server_try", line 51, in <module> >>> raise getopt.GetoptError("usage: %s =C2=ABca-cert-file=C2=BB = =C2=ABserver-cert-file=C2=BB =C2=ABserver-key-file=C2=BB" % sys.argv[0]) >>> getopt.GetoptError: usage: server_try =C2=ABca-cert-file=C2=BB = =C2=ABserver-cert-file=C2=BB =C2=ABserver-key-file=C2=BB >>>=20 >>> it fails for (I think) unrelated reasons. The script works as = expected >>> on Debian Bookworm. >>>=20 >>> I've tried starting csh and sh, the behavior is unchanged. Running >>> rehash likewise has no effect. >>>=20 >>> This is a fairly new installation with home directories under /usr = but >>> with the original empty /home directory still in place. >>>=20 >>> I must be doing something dumb, but am unable to recognize it. >>> Any suggestions appreciated! >>>=20 >>> thanks for reading, >>>=20 >>> bob prohaska >>>=20 >>>=20 >>=20 >>=20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACE92A8-EA95-49B9-84F6-21450A7D2DF5>