Need help to pass arguments to shell script

Hi,

I have a shell script called ftp.sh which is running continously in background.

I tried passing arguments to this script but it did not worked out.

Below is ftp.sh script. Please help me

case $param in
start) sleep_func "300"

echo "!ksh $scr_ddir/ftp.sh check_inprocess" >> $ftp_cmds

done

exit ;;

check_inprocess)

if [ -f $env_dir/SCRIPT1_ACTIVE ]
then
echo "script1 is active" >> $ftp_tmplog
echo "10" >> $tmp_dir/sleep_time

else
touch $env_dir/SCRIPT2_ACTIVE
echo "script2 Started" >> $ftp_tmplog
fi
exit ;;

*) echo "Invalid parameter. Should be start, check_inprocess or check_files"

exit ;;

esac
exit

first.. you can't pass an argument to a program which is already running
second..thats not the full program what you provided
third..you can pass the arguments while starting the program only