我在我的redhat上有php脚本,即时通过telnet客户端以根用户身份登录。
我的PHP脚本来运行bash脚本是(functions.inc):PHP脚本exec bash脚本不打印所有bash行
<?php
exec('/ilantest/testscript.sh');
?>
我的bash脚本:
#!/bin/bash
echo "Hello world"
echo "Whats going on ?"
当我做:PHP functions.inc - 我得到如下:
怎么回事?[root @ X ilantest]#
为什么我不看第一行?
谢谢!
那是什么“E”第一回声语句之后做什么? – Icarus3
抱歉,没有“e”修复Q .. +当我./testscript.sh它工作正常并打印2行 – ilansch
[返回Perl输出到PHP]可能的重复/ questions/21407590/return-perl-output-to-php) –