Android Question Stream text files in B4A?

Tyler

Member
Licensed User
Longtime User
Is there any way to stream a text file that is constantly being written to? Ideally the text file is on a non-local web server but it would be acceptable if it needs to be streamed from local storage. My reason for needing this is I've used the jkssh2 library to send commands to my Linux VPS for my game servers but I'm unable to get the output through jkssh2(AFAIK), I can only send commands.
 

Tyler

Member
Licensed User
Longtime User
I'm not quite sure I understand the question but to go more in depth: its a source engine server(gmod) running on Linux debian and I'm trying to be able to interface fully with both the screen session that is running the game console and the Linux terminal itself, both through(hopefully) jkssh2. So far I am able to

-Input text and output text from the Linux terminal.

-Send text to the screen session/console, ultimately changing things on the game serverserver


I am not able to receive the output from the screen session. Which provides me with two options: 1.the game produces a log.txt on a live basis so if I could somehow stream that text file and have it show on a label view or something similar that would be great! The issue is that the game is constantly clearing log.text files so they end up being named log16091401.text(DDMMYY##).

Or
2. Find a way to make the screen session output directly to a log.

I'm currently bouncing back and forth between this forum and the UNIX forums as I'm not entirely sure which category this falls under :s
 
Upvote 0
Top