#!/bin/sh # an example editlocal script. To use tell your browser to use # it to open files with mimetype application/x-editlocal # SERVERROOT=/web/head for a in `cat $1` do if [ -f "$a" ] then emacsclient -n "$a" elif [ -f "$SERVERROOT/$a" ] then emacsclient -n "$SERVERROOT/$a" fi done