pass runtime parm to at -f shell script

Hi Folks...

I am using a ksh script to submit the at command to run a shell script for immediate execution. The shell script requries 1 parameter.

Command in the script is
at -m -f $EXE_DIR/process_server.sh $START_TIME $DB_NAME
where START_TIME=now and DB_NAME= tnsname of Oracle database.

I can submit the command from the command line and it works fine but the command does not work thru at. Clearly I'm doing something wrong but I can't seem to find the problem.

Thanks in advance for any ideas/recommendations.

Cheers...

I've managed to find a way to accomplish the substitution for the at command.... Not sure if it is the best solution but the following comand in my calling script works fine...
sed s/XXDB/$DB_NAME/g process_server.sh | at -m now + 1 minute

where $DB_NAME is set from the parm passed to the calling script ($1) and
XXDB is the tnsname parm in the connect string in process_server.sh

Thanks for your consideration...