I have a php (cli) script on one terminal. It is constantly echoing the mysql calls etc. Is there any way I can see that output from another terminal, so that I can monitor the progress of that script?
Thanks
You can
use a terminal multiplexer or
modify your PHP script to write all output to a log file, or
pipe stdout
and/or stderr
to a log file (ex: php myscript.php > output.log
). If you use a log file, you can monitor it in real time with tail -f output.log
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.