#!/bin/sh /usr/bin/su - patrol /usr/adm/best1_default/bgs/scripts/best1collect -q >> $1 2>&1 #### #!/bin/sh ... # set $agent to the agent you want to start cmdpath=$cmd_dir/start-$agent if ! -x $cmdpath; then echo Error - start script $cmdpath not found exit 1 fi $cmdpath $LOG # pass any relevant parameters here