#!/bin/sh set -e php /var/www/html/queue/index.php queue index time=$(date "+%Y%m%d") if [ ! -f "/var/www/html/data/log/${time}-queue.log" ]; then touch "/var/www/html/data/log/${time}-queue.log" fi tail -f "/var/www/html/data/log/${time}-queue.log"