#!/bin/bash echo $(/www/linux/php/bin/php /data/wwwroot/sub.com/task) 注意点: 这条命令等价于直接在cli 执行:php task task必须要有可执行文件:chmod +x task