running Dyalog as root
Posted: Fri Aug 11, 2017 1:09 pm
In another topic, Jason said
"... the only time you should run Dyalog as root is when you intend on binding on a TCP port lower than 1024 on Linux/Unix,..."
I find that for certain operations involving GPIO pins, one need to have root privileges.
It is not a problem if using command line via ⎕SH as they can be "sudo".
But for ⎕NA calls or ⎕ARBOUT/⎕ARBIN, I believe, Dyalog need to have root permission.
It may be possible to use chmod on the GPIO pins pseudo files such as /sys/class/gpio/gpio26 at run time from within APL via ⎕SH to get round the problem for at least ⎕ARBOUT etc, but I don't think it will work for ⎕NA calls.
Or is there any way to provide the equivalent of "sudo" when setting up ⎕NA "links"?
"... the only time you should run Dyalog as root is when you intend on binding on a TCP port lower than 1024 on Linux/Unix,..."
I find that for certain operations involving GPIO pins, one need to have root privileges.
It is not a problem if using command line via ⎕SH as they can be "sudo".
But for ⎕NA calls or ⎕ARBOUT/⎕ARBIN, I believe, Dyalog need to have root permission.
It may be possible to use chmod on the GPIO pins pseudo files such as /sys/class/gpio/gpio26 at run time from within APL via ⎕SH to get round the problem for at least ⎕ARBOUT etc, but I don't think it will work for ⎕NA calls.
Or is there any way to provide the equivalent of "sudo" when setting up ⎕NA "links"?