PHP versus CGI

Richard MacLemale rmaclema at tampabay.rr.com
Fri Feb 20 14:37:53 EST 2004


On 2/20/04 12:00 PM, "metacard-request at lists.runrev.com"
<metacard-request at lists.runrev.com> wrote:

> Thanks, that's interesting :-)
> 
> I placed the files in the specified folder, according to read-me...
> But I have still a number of questions:
> 
> - where to place the engine?
> - is the MC engine (which went with MC 2.5) good?
> - may I use this server locally? and how?

I could never FIND the rev engine for darwin mc - thanks for posting the
link, Jacqueline!  

The rev engine appears to work the exact same way the darwin mc engine
works.  But the engine is NOT identical... It's slightly smaller than the
darwin mc engine, and looks like it has a later created date.  I'd love to
know what the difference is - probably not much.

As far as where to place it, I opted for the traditional location for
stuff... I put it in /usr/bin.  On OS X, if you want to get to that folder
in the Finder you have to use Go To Folder from the Go menu and type
/usr/bin.

>From that point on, any scripts you write must begin with the header,
#!/usr/bin/rev

And if you plan on writing scripts using a text editor, I recommend BBEdit
Lite, which can save with UNIX line breaks, which is what you need.  Or you
could write your own text editor in MetaCard or Revolution that saves using
UNIX line breaks, I guess.  :)

Once you drag the rev executable to the /usr/bin folder, you need to give it
the ability to run.  In the command line, type

sudo chmod 555 /usr/bin/rev

As far as running scripts locally, you can do that.  You can write any
script to do anything you want, and then schedule that script to run any
time you want, for example, or put it in the CGI-Executables folder and do
cgi stuff with it and whatnot.

There's a free program called Cronnix that is a GUI tool for setting cron
jobs.  That's how I schedule my server scripts to run.  The other cool thing
about Cronnix is that you can click on any script you've got scheduled to
run and run it immediately.

Actually, our district has a filemaker pro server available with all of our
students in it, and I use a combination of filemaker pro and darwin mc to
automatically add new students to ldap.  Darwin mc scripting (and thus, rev
scripting) is c-o-o-l for programming servers!

-- 
:)
Richard MacLemale
Network Administrator
J. W. Mitchell High School













More information about the metacard mailing list