#!/bin/ksh LD_LIBRARY_PATH=.... export LD_LIBRARY_PATH cd /dir/where/you/want/to/start exec commandtorun param1 param2 ...