Kian Kasad:
Unable to open file: /dev/tty2: Operation not permitted.
Operating systems do a whole bunch of stuff when connecting user
programs to terminals, including changing the permissions of the
terminal device file to allow the logged-in user access. If you check
the terminal device
On Fri Oct 16, 2020 at 2:35 PM -03, Kian Kasad wrote:
> I'm trying to have a runit service spawn `/usr/bin/ly` in a certain tty
> (tty2). I've tried redirecting std{in,out,err} to the tty:
>
> exec /usr/bin/ly /dev/tty2 2>&1
>
> but this didn't work.
>
As far as I know, ly wants to be explicitly
I'm trying to have a runit service spawn `/usr/bin/ly` in a certain tty
(tty2). I've tried redirecting std{in,out,err} to the tty:
exec /usr/bin/ly /dev/tty2 2>&1
but this didn't work.
I tried the openvt(1) program, which has a flag `-e` to exec the program
instead of forking it:
openvt -ec 2