#!/bin/sh

crond

time=$(date "+%Y%m%d")
if [ ! -f "/var/www/html/data/log/${time}-crontab.log" ]; then
    touch "/var/www/html/data/log/${time}-crontab.log"
fi

tail -f "/var/www/html/data/log/${time}-crontab.log"