Previous: , Up: binfmt   [Index]


I.7 Running Scheme programs

The binfmt_misc mechanism can be used to run both source and compiled programs. Vicare adheres to the following rules, which we can change by customising the files in the distribution:

  1. Vicare source programs are recognised if the file starts with the string ;;;!vicare. Notice that we cannot use the sequence #!vicare because when binfmt_misc reads the prefix #! it activates the traditional shebang processing.
  2. The binfmt_misc configuration is stored in a Bourne shell script (/bin/sh interpreter) named rc.vicare-scheme installed in the $(sysconfdir)/rc.d directory. If the default configuration is not changed, this ends up being:
    /usr/local/etc/rc.d/rc.vicare-scheme
    

    The script can be executed at system boot time and again later any number of times: at each run it resets and reinitialises the configuration for Scheme programs.

  3. The vicare executable must be in $(bindir), else we must customise the rc.vicare-scheme script.