Need help with redirfd, to s6-echo

From: Jean Louis <bugs_at_gnu.support>
Date: Fri, 30 Dec 2016 12:31:20 +0300

I have this /etc/s6-rc/services/enable-lisp oneshot service, that I
wish to run on startup. It depends on mountfs where binfmt_misc file
system is mounted. It helps me run the executable lisp programs
directly.

This one gives me error:

if { redirfd -u 1 /proc/sys/fs/binfmt_misc/register s6-echo ':CLISP1:E::cl::/usr/bin/clisp:' }
if { redirfd -u 1 /proc/sys/fs/binfmt_misc/register s6-echo ':CLISP2:E::lisp::/usr/bin/clisp:' }
if { redirfd -u 1 /proc/sys/fs/binfmt_misc/register s6-echo ':CLISP3:E::fas::/usr/bin/clisp:' }

unable to write to stdout: Invalid argument

while this one works perfectly in /etc/s6-rc/services/disable-interrupt/up

redirfd -u 1 /sys/firmware/acpi/interrupts/gpe06 s6-echo disable

I wish to echo those lines into register file. I am doing it wrong, but what?

Jean Louis
Received on Fri Dec 30 2016 - 09:31:20 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC