Alek
Occasional Visitor
*Mods can delete topic*
I'm using LFTP in a Screen session, by way of a Bash script, to sync files from a remote server to a USB disk attached to my RT-N66U running Merlin. Is there any easyish way I can get the output of LFTP in Screen displayed on a webpage?
This is a long shot and I'm betting there isn't. Not exactly a common or terribly useful endeavour, more of a usability nicety. Easier to check on the script now and then via a browser than SSH.
The only solution I can think of is getting LFTP to output to both terminal and to a text file, via the Bash script that runs Screen. Then somehow get the text file output, grab that and serve it via Nginx using PHP to do some regex or something simpler to get at the bits I want to display via HTML, updating every ten seconds or something via AJAX … but I have no idea if that would work, especially considering how supremely rusty I am on scripting and such. Also that's a lot of work and I can't be bothered.
So if anyone knows of a much better solution, tangential or otherwise, please let me know!
(Guess this isn't specifically Asuswrt-Merlin related, but since I'm running all this on a Merlin RT-N66U using Entware, thought I'd ask here.)
I'm using LFTP in a Screen session, by way of a Bash script, to sync files from a remote server to a USB disk attached to my RT-N66U running Merlin. Is there any easyish way I can get the output of LFTP in Screen displayed on a webpage?
This is a long shot and I'm betting there isn't. Not exactly a common or terribly useful endeavour, more of a usability nicety. Easier to check on the script now and then via a browser than SSH.
The only solution I can think of is getting LFTP to output to both terminal and to a text file, via the Bash script that runs Screen. Then somehow get the text file output, grab that and serve it via Nginx using PHP to do some regex or something simpler to get at the bits I want to display via HTML, updating every ten seconds or something via AJAX … but I have no idea if that would work, especially considering how supremely rusty I am on scripting and such. Also that's a lot of work and I can't be bothered.
So if anyone knows of a much better solution, tangential or otherwise, please let me know!
(Guess this isn't specifically Asuswrt-Merlin related, but since I'm running all this on a Merlin RT-N66U using Entware, thought I'd ask here.)
Last edited: