#!/bin/bash TTYRECPATH=$1 HOMEDIR=$2 HACKDIR=$3 USER=$4 #HOME=$HOMEDIR nethack -d $HACKDIR -u $USER ttyrec $TTYRECPATH -e "HOME=$HOMEDIR nethack -d $HACKDIR -u $USER"