Subject: How to execute a string as if the player had entered it at the

From: [email-masked] (Theodore F Vaida ][)
Date: Fri, 11 Dec 1992 12:51:59 -0800

I would like to be able to make a string be executed as if the player
had entered it at the command line.  I have an alias->dealiaser set of
commands that run under the player when it trys to run a "huh2".  

eval("some thing");

only makes the line prentend to run as if it was in a program... si it
possible to have a line parsed and executed as if the player typed it?
(this is a fairly large security hole i'm sure if it isnt kep under
strict control...)

i have the latest server and the latest core (last announcemtn on
MOO-Cows that is...)

thanks in advance
---------=======================================================---------
                  ->POLAR CAPS<- or [email-masked]
Student Konsultant Making the world safe for computing!
"Never before have we owed so little to so few..."- R.T.Folk
"One must not confuse John Dunne's famous quote `No man is an Island' with
 New York Telephone's `We're all connected'" - Dad
"Trust no one, and be honest with all"  _Claudius_the_God_, and Dad
   Paranoid, but it'll keep you out of trouble...
---------=======================================================---------

Public PGP encryption key follows:

---

From: Pavel Curtis <[email-masked]>
Date: Mon, 14 Dec 1992 15:06:00 -0800

> Date:	Fri, 11 Dec 1992 12:51:59 -0800
> From:	[email-masked] (Theodore F Vaida ][)
> 
> had entered it at the command line.

There is no built-in way to do this, though it is possible to write MOO code
that does a pretty good job of simulating it.  See the code on LambdaMOO for
the generic puppet's :do verb.  There's still a problem with !x verbs, but it
might still work out well enough for your purposes.

	Pavel

---

From: Roger Crew <[email-masked]>
Date: Mon, 14 Dec 1992 17:12:29 -0800

>   There's still a problem with !x verbs, but it

Well, you *could* write a wizardly verb to take an arbitrary verb, set
it +x, chown it to a wizard, and set_verb_code() to add some code to
the beginning of the verb that would in turn restore the original verb
code, reset the x flag, restore the original ownership, and finally
set_task_perms(verbowner).  Forget to do any of these things and/or
not put adequate protection on said wizardly verb and you've got
yourself a monster security hole.

Think of this as the next stage of psychosis beyond LambdaCore's
$code_utils:eval_d().
--
Roger Crew
Internet:   [email-masked]
LambdaMOO:  Rog