#lang scribble/doc @(require scribble/manual scheme/cmdline "guide-utils.ss") @title[#:tag "scripts"]{Unix Scripts} Under Unix and Mac OS X, a Scheme file can be turned into an executable script using the shell's @as-index{@tt{#!}} convention. The first two characters of the file must be @litchar{#!}; the next character must be either a space or @litchar{/}, and the remainder of the first line must be a command to execute the script. For some platforms, the total length of the first line is restricted to 32 characters, and sometimes the space is required. The simplest script format uses an absolute path to a MzScheme executable followed by a module declaration. For example, if @exec{mzscheme} is installed in @filepath{/usr/local/bin}, then a file containing the following text acts as a ``hello world'' script: @verbatim[#<