The following command is executed at system startup and the PHP script is running in the background continuously with a loop:
screen -dmS some-friendly-name php /path/to/file.php
Unfortunately, I accidentally deleted /path/to/file.php file. But when I reattach to the screen session, I can see the script is still running (giving output).
Is there a way to recover this file, other than the standard file recovery processes? Could it be stored in a PHP buffer etc?