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