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