阅读:853回复:0
Linux系统下执行php程序的shell脚本
* 命令行入口
* 使用方式: php cli.php controller_action * 示例: php cli.php unfreeze_index * 也可简写为: php cli.php unfreeze cd /www/wwwroot/pay.gladpay.net/ php cli.php Autodf_index ThinkPhp框架 #!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH cd /www/wwwroot/pay.xxx.net/ php cli.php Autodf_index echo "----------------------------------------------------------------------------" endDate=`date +"%Y-%m-%d %H:%M:%S"` echo "★[$endDate] Successful" echo "----------------------------------------------------------------------------" |
|