darwin mc

Scott Raney raney at metacard.com
Fri Jan 25 14:28:01 EST 2002


On Thu, 24 Jan 2002 andu <undo at cloud9.net> wrote:

> > >> I know that MetaCardCarbon does not honor shell (as in put shell("ls *")
> > >> into field 1)... Am I correct in assuming that the darwin mc engine is also
> > >> unable to do shell commands?  I tried and it didn't work but wanted to
> > >> verify it here.
> > >
> > > Works fine here...
> > 
> > OK, can someone provide a really simple example of a .mt script that
> > includes a shell command?  I created a text file (with UNIX line breaks)
> > called "test.mt" with the following script:
> > 
> > on startup
> >    put "Hello"
> >    put shell("ls -l")
> > end startup
> > 
> > When I run it from the command line (./test.mt), I get this:
> > 
> > Hello
> > 
> > I can run other metacard scripts and everything else works perfectly.
> > 
> > Sooo.... What am I doing wrong?
> 
> Nothing. It just doesn't work. It works on Linux though so it must be a
> Darwin thing.

No really, that exact script runs fine here.  Maybe a version thing?
Are you running 10.1.2?  Maybe a permissions problem?  Are you running
this from a terminal window in a directory you own?

In any case, we should take this off list...
  Regards,
    Scott

> > :)
> > Richard MacLemale
> > Instructional Technology Specialist
> > James W. Mitchell High School
> > http://mitchellonline.pasco.k12.fl.us
> 
> -- 
> __________________________
>  Regards, Andu

********************************************************
Scott Raney  raney at metacard.com  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...






More information about the metacard mailing list