我使用PHP网站运行一个shell脚本,并在/ opt / xampp / htdocs中创建了我想要的名称文件“result.txt”。但是,当它应该具有来自shell脚本的输出值时,result.txt是完全空的。尝试在终端上,在桌面上创建result.txt并输出。尝试PHP,result.txt创建,但完全没有输出里面。
这是一个很长的脚本,所以这里是前几行:
# creates result.txt
touch result.txt
##makes the .txt read only
chmod 444 result.txt
clear
###################################################
# This option audits the password and #
# shadow files on the system #
###################################################
##option 2.1.1
echo -e "=========================================================================================" >> result.txt
echo " SHADOWED PASSWORD CHECK " >> result.txt
echo "=========================================================================================" >> result.txt任何人?
谢谢。