简体   繁体   中英

php script output from another terminal

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

  1. use a terminal multiplexer or

  2. modify your PHP script to write all output to a log file, or

  3. 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM