NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) MVP & NMT MVPMCX2 and other NMT stuff v
« Previous 1 … 28 29 30 31 32 … 37 Next »
auto-load html page from/after script

 
  • 0 Vote(s) - 0 Average
auto-load html page from/after script
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#1
2008-06-13, 01:59 AM (This post was last modified: 2008-06-13, 05:32 AM by pBS.)
i found that you can auto-load a page after running a script with meta-tags..Smile
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...Big Grin [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] Smile
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
Ted the Penguin
Offline

Posting Freak

Posts: 1,590
Threads: 64
Joined: Aug 2006
#2
2008-06-13, 07:57 PM
wanna add this to the wiki?
sub Wrote:Are you trying to make sure I get nothing done today?
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#3
2008-06-23, 09:50 AM
not yet...much more info coming down the shoot...:p
just got llink working and a transfer bat to transfer individual shows + info...Smile
[send2pch]
and figured out some weirdness with if/else...if works, else don't..lol
and another way to do the redirects...
so lots more info to add...Big Grin

will have to check if new firmware breaks/helps anything too...
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Jaggy's AutoLoad Script Jaggy 3 1,790 2011-10-05, 11:08 PM
Last Post: ACTCMS
  Help with mounting DVD share in NPVR script Paul_B 3 1,970 2011-01-01, 09:51 PM
Last Post: mvallevand
  Cannot get GB-PVR to load forzaKGB 2 1,557 2009-12-31, 08:41 PM
Last Post: forzaKGB
  DVD script helper mvallevand 4 2,931 2009-12-31, 02:50 AM
Last Post: mvallevand
  Automatic load into GB from cold boot Jaggy 3 1,702 2009-10-20, 10:38 PM
Last Post: Jaggy
  the auto-script! pBS 9 3,316 2009-06-19, 11:41 PM
Last Post: mvallevand
  telnet.html EditMe help -Oz- 4 2,603 2009-05-15, 09:32 PM
Last Post: -Oz-
  script to play iso's Blue Racer 23 8,563 2009-05-13, 09:21 PM
Last Post: mvallevand
  Running telnet.html from USB drive dirkomatic 110 33,254 2008-12-06, 09:12 AM
Last Post: Lindsay
  Problem with script following NMT firmware upgrade Azimuth 11 4,250 2008-11-02, 07:55 PM
Last Post: Azimuth

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode