#!/bin/bash export PIKE_MODULE_PATH=$(dirname $0):$PIKE_MODULE_PATH printf "foo\nbar\nbaz" | exec pike $(dirname $0)/test.pike "$@"