----- Original Message -----
From: "Sivakatirswami" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 01, 2001 10:09 PM
Subject: Trigger a stack on a distant server via CGI/telnet?


> Can I write an MC "cgi" that will simply trigger a stack on a distant
site?
>
> i.e. I have MC running on a distant server, running Apache over Linux,
where
> I have FTP access and MC is enabled also to run cgi's but I don't have
> "terminal GUI interface" access.
>
> It would seem a lot easier to build certain tools as stacks, ftp the stack
> to the site and then "run it" some how. These are operations where I am
not
> reading standardIN and not processing standardOut back to the browser, but
> doing global text manipulations on files on the server.
>
> But the trick is to "trigger" it...i.e. make it execute.


Some off-target but possibly helpful observations:

- when working on your local machine only (that's the only way I've done
this), you can send a <whatever> message to a stack that isn't open; this
will cause that stack to be loaded into your current MC session memory space
(but I don't think it's opened, if I remember correctly - better check it
out), and its <whatever> message handler to execute.

- when you "go url <stackUrl>", the remote stack is fetched into your local
MC session and opened.


These make me think the MC session where your script is running will try to
fetch the remote stack and run the desired handler on the script's local
computer (if it doesn't generate an error).

Of course, it's possible to open a socket to the remote stack if it's
running... hmmm... or is it really necessary that it be running? If the
remote stack's script knows what to do with an "open socket" request, I
wonder if the incoming socket request would be handled (similar to the first
case above)?

Food for thought.

Phil Davis

(The good news in this is that, since you aren't hindered by excessive
knowledge of the boundaries of possibility in this, you may stumble into
something wildly ingenius!)


>
> could it really be as simple as putting this in a browser:
>
> "http://www.myDistantDomain/cgi-bin/runStack.cgi";
>
> where the .cgi script is just:
>
> #!/usr/local/bin/mc
>
> on start up
>   send mouseup to button "SearchReplace" of stack
> "/tmp/mcstacks/siteAdmin.mc"
> end startup
>
>
> Well, of course I will just go ahead and test this myself, but then maybe
> someone has already been there, done that and has useful advice?
>
> Or, is there a way to  "talk to" the "siteAdmin.mc" stack via telnet?
> kind of like a distant message box:
>
> "send mouseup to button 1 of stack "/tmp/mcstack/stackAdmin.mc"
>
> thanks!
>
> Hinduism Today
>
> Sivakatirswami
> Editor's Assistant/Production Manager
> [EMAIL PROTECTED]
> www.HinduismToday.com, www.HimalayanAcademy.com,
> www.Gurudeva.org, www.hindu.org
>
>
>
> Archives: http://www.mail-archive.com/[email protected]/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>
>


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to