i found that you can auto-load a page after running a script with meta-tags..
only catch is you have to approx. count the output for the output length..
[either >/dev/null any output or keep it predictable length]
also, gotta use single quotes to be able to output quotes..' "test" '= "test"
so you can run the telnet script,it shows output, then automatically reloads the page you came from... [with selectable timeout to see results]
example tail end of a .cgi :
don't forget to use url paths for target and use single quotes to echo double quotes that are inside..
Mav: how did you get wc working? is it from your busybox and not built-in?
[need to count those chars]
only catch is you have to approx. count the output for the output length..
[either >/dev/null any output or keep it predictable length]
also, gotta use single quotes to be able to output quotes..' "test" '= "test"
so you can run the telnet script,it shows output, then automatically reloads the page you came from... [with selectable timeout to see results]
example tail end of a .cgi :
Code:
......script code......
echo "Content-Length: 118";
echo "Content-type: text/html";
echo "";
echo "<HEAD>";
echo '<META http-equiv="Refresh" content="3;url=http://localhost.drives:8883/USB_DRIVE_A-1/llink.html"> ';
echo "</HEAD>";
echo "<body>";
echo "Loading...";
echo "</body>";
exit 0;
don't forget to use url paths for target and use single quotes to echo double quotes that are inside..
Mav: how did you get wc working? is it from your busybox and not built-in?
[need to count those chars]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie