Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

While this question seems like its asking for code, its not; exactly, which is why its here instead of SO.

I'm designing a RPG game in bash, a lot of things that an RPG game would need, fixed displays, and etc. Worked in HTML, so I thought "Why not use a text based web browser too parse and display the HTML files" I looked into links, lynx, w3m, and elinks. But I couldn't find a way too have the web browser take a HTML button, trigger a bash based script too run.

Is this too advanced? Or is there some other way if doing this without requiring a online aspect to it.

share|improve this question

2 Answers 2

You must use some script to do this. Client side script VBS should be able to do it as well as server side preprocessor like PHP (see exec() or system() functions)

share|improve this answer
    
The thing is, I want too avoid serverside, as the program is entiely clientside, all of it. It's a local HTML file, not transmitted over the WWW. –  RainbowDashDC Jan 27 at 8:21
    
yes serverside would mean that you would have to install apache server and PHP into your computer ;) Or just use this visual basic script and it will work without installing server software I believe –  Vitas Jan 27 at 8:38
    
I suppose that could be done. –  RainbowDashDC Jan 27 at 8:39
1  
if you consider installing server software, I suggest XAMPP. Very simple to setup –  Vitas Jan 27 at 8:45
    
Thank you! I'll try it out, I used too use WAMP, but I'll give that a shot –  RainbowDashDC Jan 27 at 8:46
up vote 0 down vote accepted

From Lynx's user guide:

Local execution scripts or links Local execution is activated when Lynx is first set up.

If it has not been activated you will not see this option in the Options Menu.

When a local execution script is encountered Lynx checks the users options to see whether the script can be executed. Users have the following options:

If the users options permit the script to be executed Lynx will spawn a shell and run the script.

If the script cannot be executed Lynx will show the script within the Lynx window and inform the user that the script is not allowed to be executed and will ask the user to check his/her options

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.