Forum:Running a script using Remote

Is it possible to run a script/executable on the box somehow using the remote?

I have a feeling this isn't possible because it would've opened up a whole lot of possibilities, but I can't think of a fundamental reason why it isn't possible..

For example, I could have a script, which when run creates a random playlist. Then I can just play the playlist.

Obviously, it has the telnet interface with a real shell, so I was able to telnet and run the script, but if I can run the script by browsing to the directory with the remote and selecting it, it'd be much more useful.

I do something very similar on my Windows MediaPC using MediaPortal, and that makes a lot of cool things possible..
 * It is possible, but it'll take some work to get it done. Two different approaches I can think of.  One is to setup a webpage with the scripts you want and have the screenplay host it with its www host.  You could then access the webpage through, for instance, iphone.  Second way would be to intercept the IR signal.  That is, you would replace venus_irrp with your own driver that watches for specific codes.  I know I've seen somebody else do that, but I'm not finding where it was done.  --JCoug 07:33, November 22, 2009 (UTC)
 * But can't we make the screenplay interface "execute" a file if it is an "executable"? Essentially, there are different file types it knows what to do with (mount and play an iso, play an mpeg file etc.). So the "action" for the executable type needs to be to just run it. Like "file types" and "binding actions for the type". This is what happens in all the OS GUIs right? This is how it's done in the MediaPortal app on my MediaPC also. I just point and select the file, and it "exec"s the file.
 * 171.70.209.140foobart
 * Unfortunately, no. Operating systems allow you to execute a file.  But programs running within the operating system don't usually let you execute files.  For instance, you wouldn't be able to execute a graphic from MSPaint.  Well, the DvdPlayer program that executes on the screenplay and provides your UI is like MSPaint.  It knows how to deal with specific file formats.  It knows how to mount an ISO.  It knows how to unpackage an AVI / MPG file and stream the contents to the video chip for decoding.  It knows how to execute DVD menus.  But when it comes to raw, linux programs, it won't execute those.
 * If the script you want is to randomly generate a playlist, you could do that at startup so that the screenplay does it each time. I have considered just such a script before. --JCoug 17:38, November 25, 2009 (UTC)