This project is read-only.

How do I make results show up on a webpage?!

Topics: General, Writing modules
Jul 24, 2015 at 9:37 PM
Hi I have a module that will SSH into a server and allow you to send commands to the server. I currently have it to where the results from the command will populate into a text file. I am trying to get it to show up on the web page itself but am having trouble figuring out how to do it. i currently have it in the driver class and am trying to tell it to set itself to the view but it returns blank as opposed to having the results in it.

This picture is what it currently looks like. It takes in a ip, user, password, and command field, and i am trying to get it to populate the command results area with the results of the command (duh).

Is there a way to store the results somewhere and then call the results to be displayed, or is there a simple way to read a text file to the page? I've tried <iframe src = "filepath"> to no success. Any help or suggestions would be greatly appreciated.