What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Screen Session Output to Webpage

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.)
 
Last edited:
*Mods can delete topic*

Bought a Raspberry Pi 2 so that I could use ARM, have a dedicated device, and do more than I can on my MIPS router.

Probably nobody else interested in such a pretty esoteric topic, but don't think I can delete it. So if a mod sees this, feel free to delete the topic.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top