I know it seems simple, but have you checked permissions to ensure the user ID running the script has both read and execute permission for the executable, and the extended attribute noexec is not set on the executable?
I've seen that error when permissions are not quite as expected, or when extended attributes are set to prevent an action...
Another possibility that comes immediately to mind is whether there is a symbolic link in the path to the executable, symbolic links can get weird at times.
Third question, Did you copy over the binary, or recompile the program on this new machine? If you did copy an existing binary, a recompile might be a good idea to rule out issues caused by ELF or glibc changes.
On 2022-10-12 03:18 PM, joe--- via PLUG-discuss wrote:
> Recently I purchased a used Thinkpad T460 and I did
> a fresh install of Linux Mint 20.1 that works ... except:
>
> I also installed a "C" program called 'readin' that I have
> used successfully for more than 30 years on several Linux
> installs; but it does not work on on this Mint 20 install.
>
> Instead, this error appears:
> "/home/joe/bin/readin: No such file or directory"
>
> That is weird because 'readin' is actually present
> in my directory: /home/joe/bin
>
> I have uploaded copies of the applicable files here:
> *** https://vsiq.com/data/count/ *** In one of the
> files named: why-no-such.pdf I have tried to explain
> and demo the problem.
>
> Someone suggested replacing 'readin' with "read -n1"
> and that works in the small "count" example ...
> however, it does not work in most of the other important
> shell script applications in which I need 'readin' to work.
>
> So the question remains, why that error message appears
> when the named file is actually present in /home/joe/bin?
>
> ===
>
> ---------------------------------------------------
> PLUG-discuss mailing list: PLUG-discuss@lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list:
PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss