Is anybody using the 'binfmt_misc' module for interpreter support. I can't seem to get the '/proc/sys/fs/binfmt_misc/register' file updated to register my script (Rexx) interpreter. Here's my understanding of the steps required:
1) lsmod binfmt_misc (if not already loaded)
2) mount -t binfmt_misc none /proc/sys/fs/binfmt_misc (if not already mounted r/w)
3) echo ’:rexx:M:0:/*::/usr/local/bin/rexx:’ >/proc/sys/fs/binfmt_misc/register (as root)
At this point I see a 0 byte count on the register file (however I read somewhere that this culd be normal for the /proc fs) so I assume (bad, but as a linux newbbie, don't know better) that the update worked. When I try to execute a rexx script (which begins with '/**/' the interpreter is not called by the kernel and the lines in the file are passed to bash, which know nothing about this.
What did I miss along the way ?? Is there a way to see the contents of the '/proc/sys/fs/binfmt_misc/register' file to verify the update from the 'echo ....' ??
1) lsmod binfmt_misc (if not already loaded)
2) mount -t binfmt_misc none /proc/sys/fs/binfmt_misc (if not already mounted r/w)
3) echo ’:rexx:M:0:/*::/usr/local/bin/rexx:’ >/proc/sys/fs/binfmt_misc/register (as root)
At this point I see a 0 byte count on the register file (however I read somewhere that this culd be normal for the /proc fs) so I assume (bad, but as a linux newbbie, don't know better) that the update worked. When I try to execute a rexx script (which begins with '/**/' the interpreter is not called by the kernel and the lines in the file are passed to bash, which know nothing about this.
What did I miss along the way ?? Is there a way to see the contents of the '/proc/sys/fs/binfmt_misc/register' file to verify the update from the 'echo ....' ??
Comment