Announcement

Collapse
No announcement yet.

binfmt_misc Help !

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    binfmt_misc Help !

    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 ....' ??

    #2
    Re: binfmt_misc Help !

    Did you get it to work?

    For my Fedora Core 6 I use in my /etc/rc.local:

    echo ':rexx:M::/*::/usr/bin/rexx:' >> /proc/sys/fs/binfmt_misc/register
    echo ':rexxcmd:E::cmd::/usr/bin/rexx:' >> /proc/sys/fs/binfmt_misc/register

    Notice the '>>'s.

    Comment

    Working...
    X