[Metacard] Digest metacard.v004.n530

metacard-errors at www.runrev.com metacard-errors at www.runrev.com
Sat Nov 24 14:04:01 EST 2001


-------------- BEGIN metacard.v004.n530 --------------

    001 - Richard MacLemale <rmacle - Re: Darwin question again...
    002 - Curry Kenworthy <curry at ka - Re: Win XP: a new dawn
    003 - Curry Kenworthy <curry at ka - rawkeydown vs. keysdown
    004 - Richard Gaskin <ambassado - Re: Win XP: a new dawn
    005 - "thierry Douez" <t.douez@ - RE: shell behavior ( strange or mistake)
    006 - "thierry Douez" <t.douez@ - RE: shell behavior ( strange or mistake)
    007 - andu <undo at cloud9.net>    - Re: Win XP: a new dawn
    008 - andu <undo at cloud9.net>    - Re: shell behavior ( strange or mistake)
    009 - "thierry Douez" <t.douez@ - RE: shell behavior ( strange or mistake)
    010 - andu <undo at cloud9.net>    - Re: shell behavior ( strange or mistake)

This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send any bug reports to <bugs at metacard.com>, not this list.


--------------- MESSAGE metacard.v004.n530.1 ---------------

From: Richard MacLemale <rmaclemale at earthlink.net>
Subject: Re: Darwin question again...
Date: Fri, 23 Nov 2001 19:06:04 -0500
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
In-Reply-To: <200111232228.RAA26600 at www.runrev.com>

Dave Cragg typed:
> I've had it working before, so it is possible.

Mondo cool.  

> Make sure execute
> permissions are set on both the darwin engine and the mt script
> files. (chmod 755)

Done.

> If the engine is named "mc", and is in the CGI-Executables folder,
> your scripts should start with #!mc

Done.

> Call the script from a browser with the address:
> serverName/cgi-bin/yourscript.mt

Done!

> (I think Apache is pre-configured to run CGI scripts on OS X, but you
> might want to check in the http.conf file if things aren't working.)
> 
> Also, from memory, I think the script files may require unix-style
> line endings. (Or is that for Perl scripts!!!) One way to do this is
> to write them in a Metacard field and save the contents of the field
> using binary write so no conversion is done (put field x into url
> "binfile:myfilepath.mt")

I'll check the config file.  I know the test .mt file I wrote works, because
it runs fine when I use "./mt" but won't work via Apache.  Which to my
(feeble) mind means my problem might be with Apache...


:)
Richard MacLemale
Instructional Technology Specialist
James W. Mitchell High School



--------------- MESSAGE metacard.v004.n530.2 ---------------

From: Curry Kenworthy <curry at kagi.com>
Subject: Re: Win XP: a new dawn
Date: Sat, 24 Nov 2001 01:59:35 -0600
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
In-Reply-To: <200111232228.RAA26600 at www.runrev.com>

Now that MetaCard (via Revolution) has made me a more crossplatform user and
programmer, I am wondering about good Windows sites on the internet. I see
that pcmagazine.com is good for reviews and such, kind of like Macworld, but
where would I go to get some daily news and shareware PR, something like
Macintouch, MacNN or MacSurfer but for PC?

Thanks,

Curry Kenworthy




--------------- MESSAGE metacard.v004.n530.3 ---------------

From: Curry Kenworthy <curry at kagi.com>
Subject: rawkeydown vs. keysdown
Date: Sat, 24 Nov 2001 02:11:40 -0600
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
In-Reply-To: <200111231704.MAA21780 at www.runrev.com>

Using Revolution 1.1, Mac 8.6 on iMac (with the condensed keyboard), I have
come across an inconsistency in the key codes reported for the rawKeyDown
message and the keysDown function.

If you make a text field 2 lines high and give it the script:

on rawkeydown n
  put n & cr & the keysdown into me
end rawkeydown

The two numbers will always be the same, except when using the numerical
keypad. Then, the number reported by rawKeyDown will be the same as the
equivalent key on the main alpha section of the keyboard, while the keysDown
reports a different number which is unique for the key. This is true for the
numbers as well as the arithmetic operators, equal sign, and decimal/period
keys on the keypad.

Thanks,

Curry Kenworthy




--------------- MESSAGE metacard.v004.n530.4 ---------------

From: Richard Gaskin <ambassador at FourthWorld.com>
Subject: Re: Win XP: a new dawn
Date: Sat, 24 Nov 2001 01:29:04 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
In-Reply-To: <200111240801.DAA30568 at www.runrev.com>

Curry Kenworthy wrote:

> Now that MetaCard (via Revolution) has made me a more crossplatform user and
> programmer, I am wondering about good Windows sites on the internet. I see
> that pcmagazine.com is good for reviews and such, kind of like Macworld, but
> where would I go to get some daily news and shareware PR, something like
> Macintouch, MacNN or MacSurfer but for PC?

It's a little harder to identify good news sites as Windows-specific, since
many folks believe Windows is the only operating system there is.  ;)

Here are some sites on my regular reading list:

http://www.computerworld.com/

http://www.news.com/

http://slashdot.org/

http://www.ddj.com/

http://www.openp2p.com/

http://www.wdj.com/

http://www.eweek.com/

http://www.sdmagazine.com/

http://news.gnome.org/gnome-news/

http://www.webdeveloper.com/

http://www.flashkit.com/



-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Custom Software and Web Development for All Major Platforms
 Developer of WebMerge 1.8: Publish your database on the Web
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc



--------------- MESSAGE metacard.v004.n530.5 ---------------

From: "thierry Douez" <t.douez at wanadoo.fr>
Subject: RE: shell behavior ( strange or mistake)
Date: Sat, 24 Nov 2001 13:20:32 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
In-Reply-To: <200111221627.LAA03954 at www.runrev.com>

  | De : metacard-errors at www.runrev.com
  | De la part de xbury.cs at clearstream.com
  | Envoyé : Thursday, November 22, 2001 5:25 PM
  |
  | Thierry,
  |
  | I dont know about alternative shells but... (i use mostly NT
  | so, shell is
  | "cmd" but i've had no problems with command from w98)

I got problems on win98 with the command.exe !!!
but , I admit i'm asking for a lot :-)
What i tried whas to execute a perl script,
where the script is stored as a text in MC.
then just do shell( perl -e & quote & field "Perl" & quote ).
Sure, we have to set properly HOME and PATH directories for the dos.
I got amazing results... 10 lines

  | make sure your "directory" global is set to something that exists...
  | set the directory to "c:\"
  | If the directory is invalid, you will get errors even from
  | working commands.
  |
  | use of backslash or slash within the command shell should be
  | backslash...
  | Slash is only good in MC directory commands (but you can use backslash
  | AFAIK).
  |
  | Scott has told me that the "open process" works better but i've
  | had enormous
  | problems with compatibility and getting the whole output back whereas
  | shell() works great in all senses.
  |
  | With slow network connections, the shell() command can stall completely
  | though. This is really a bad problem because it causes major
  | problems in our
  | environment but for ALL other purposes, it's not a problem.
  |
  | Last but not least, remember that the path will affect the workings of
  | different programs you call from shell or open process, so providing the
  | path can help...
  |
  | shell( "echo $0 $1 $2"  ) worked great first time...
  |
  | here's an example startup script for you
  |
  | on openstack
  |   put the itemdelimiter into olddelim
  |   put the effective filename of the topstack into x
  |   if "/" is in x
  |   then get "/"
  |   else get "\"
  |   set the itemdelimiter to it
  |   delete last item of x
  |   put it after x
  |   set the itemdelimiter to olddelim
  |   set the directory to x
  |
  |   set the shellCommand to "cmd.exe" -- NT only
  |   set hideConsoleWindows to true
  |
  |   put "" into editMenus -- for the mac
  |
  |   CheckToolsAvailable -- dos tools required in the gui for
  | shell commands
  |   CheckUserIsAdmin -- user has the rights to work the tools?
  |   pass openstack
  | end openstack
  |
  | cheers
  | Xavier
  |
  | > Hi all,
  | >
  | > Spend few times trying to play with shell options.
  | > Here is one my smaller program :
  | >
  | >   -- PC /Win98 / MC2.3
  | >   set the hideConsoleWindows to false
  | >   set the shellcommand to "bash"
  | >   put  shell( "echo $0 $1 $2"  ) after field "R"
  | >
  | > I got this error after the Shell() execution :
  | >
  | >   /C: /C: No such file or directory
  | >
  | > It seems that MC put a Dos parameter "/C" after the name of
  | > the shell ? Ok, if the shell is Command.exe ! but, what if we want
  | > another shell ? A bit of light would be helpful.
  | >
  | > Have a nice day,
  | > thierry
  | >
  | > Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
  | > Info: http://www.xworlds.com/metacard/mailinglist.htm
  | > Please send bug reports to <bugs at metacard.com>, not this list.
  | >
  |
  |
  | Visit us at http://www.clearstream.com
  |
  | IMPORTANT MESSAGE
  |
  | Internet communications are not secure and therefore
  | Clearstream International does not accept legal responsibility
  | for the contents of this message.
  |
  | The information contained in this e-mail is confidential and
  | may be legally privileged. It is intended solely for the
  | addressee. If you are not the intended recipient, any
  | disclosure, copying, distribution or any action taken or
  | omitted to be taken in reliance on it, is prohibited and may be
  | unlawful. Any views expressed in this e-mail are those of the
  | individual sender, except where the sender specifically states
  | them to be the views of Clearstream International or of any of
  | its affiliates or subsidiaries.
  |
  | END OF DISCLAIMER
  |
  | Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
  | Info: http://www.xworlds.com/metacard/mailinglist.htm
  | Please send bug reports to <bugs at metacard.com>, not this list.
  |



--------------- MESSAGE metacard.v004.n530.6 ---------------

From: "thierry Douez" <t.douez at wanadoo.fr>
Subject: RE: shell behavior ( strange or mistake)
Date: Sat, 24 Nov 2001 13:20:35 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
In-Reply-To: <200111221627.LAA03954 at www.runrev.com>

  | De la part de xbury.cs at clearstream.com
  | Envoyé : Thursday, November 22, 2001 5:25 PM
  | Thierry,
  |
  | I dont know about alternative shells but... (i use mostly NT
  | so, shell is "cmd" but i've had no problems with command from w98)

I tried alternative shell, because i got problems with command.exe !!!

the idea is to have a set of text fields, each one is a full perl script.
These perl scripts are driving a physical robot, via perl libraries,
outside Metacard. MC is used as a GUI for end-users plus hiding all the
complexity. This has to be a full security software, admit 0 bugs.

In MC, when the perl script is choosen, i send the shell command :
shell( "perl -e & quote & field "PerlScript_33" & quote ) ...

...did a lot of tries, and for instance MC could send a 20 lines perl script
opening an MS-Access database, sending SQL commands,
formatting everything and giving the result back to MC.

But, doing some others checking, it happened that this technic do not work
all the time... the job "MC->shell->command.exe" bugs depending of what is
in
the perl script, but NOT the number of chars or lines of the perl script...
and it's not a perl script mistake !
I guessed then, that the shell call or command.exe was not reliable enough
???

That's why i change the command.exe with bash or tcsh ! and, then i saw
an error message showing this '/C' parameters which means command's
following.

So, I hope this a bit clearer... I need absolutely a solution like this,
for differents aspects... et Voila :-)

  | make sure your "directory" global is set to something that exists...
  | set the directory to "c:\"

tried this too, no change !

  | use of backslash or slash within the command shell should be
  | backslash...  Slash is only good in MC directory commands

Ok

  | Scott has told me that the "open process" works better but i've
  | had enormous
  | problems with compatibility and getting the whole output back whereas
  | shell() works great in all senses.

I need a solution for a PC WIn98 and NT only !

  | Last but not least, remember that the path will affect the workings of
  | different programs you call from shell or open process, so providing the
  | path can help...
  | cheers, Xavier
  |

Thanks a lot for your long mail and explanations. Can one tell me more ?
Have a nice week-end
thierry

  | > Spend few times trying to play with shell options.
  | > Here is one my smaller program :
  | >     -- PC /Win98 / MC2.3
  | >   set the hideConsoleWindows to false
  | >   set the shellcommand to "bash"
  | >   put  shell( "echo $0 $1 $2"  ) after field "R"
  | > I got this error after the Shell() execution :
  | >      /C: /C: No such file or directory
  | > It seems that MC put a Dos parameter "/C" after the name of
  | > the shell ? Ok, if the shell is Command.exe ! but, what if we want
  | > another shell ? A bit of light would be helpful.
  | > thierry



--------------- MESSAGE metacard.v004.n530.7 ---------------

From: andu <undo at cloud9.net>
Subject: Re: Win XP: a new dawn
Date: Sat, 24 Nov 2001 08:41:34 -0500
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
References: <200111240801.DAA30568 at www.runrev.com>

Curry Kenworthy wrote:
> 
> Now that MetaCard (via Revolution) has made me a more crossplatform user and
> programmer, I am wondering about good Windows sites on the internet.

See what you were missing?
 
>I see
> that pcmagazine.com is good for reviews and such, kind of like Macworld, but
> where would I go to get some daily news and shareware PR, something like
> Macintouch, MacNN or MacSurfer but for PC?
> 
> Thanks,
> 
> Curry Kenworthy
> 
Andu


--------------- MESSAGE metacard.v004.n530.8 ---------------

From: andu <undo at cloud9.net>
Subject: Re: shell behavior ( strange or mistake)
Date: Sat, 24 Nov 2001 08:55:33 -0500
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
References: <200111241218.HAA01033 at www.runrev.com>

thierry Douez wrote:

> I tried alternative shell, because i got problems with command.exe !!!

Did you look up the "shellCommand" property in the docs?

Andu


--------------- MESSAGE metacard.v004.n530.9 ---------------

From: "thierry Douez" <t.douez at wanadoo.fr>
Subject: RE: shell behavior ( strange or mistake)
Date: Sat, 24 Nov 2001 17:15:24 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
In-Reply-To: <200111241357.IAA01813 at www.runrev.com>

  | À : metacard at www.runrev.com
  | Objet : Re: shell behavior ( strange or mistake)
  |
  | thierry Douez wrote:
  |
  | > I tried alternative shell, because i got problems with command.exe !!!
  |
  | Did you look up the "shellCommand" property in the docs?
  | Andu
  |

Absolutely Yes !
I re-read it again, and din't find a clue except it doesn't seem so
clear what we can manage around this shell concept. My mother tongue is
not english, so, could I misunderstand something ?

thierry



--------------- MESSAGE metacard.v004.n530.10 ---------------

From: andu <undo at cloud9.net>
Subject: Re: shell behavior ( strange or mistake)
Date: Sat, 24 Nov 2001 12:39:51 -0500
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
References: <200111241613.LAA03107 at www.runrev.com>

thierry Douez wrote:
> 
>   | À : metacard at www.runrev.com
>   | Objet : Re: shell behavior ( strange or mistake)
>   |
>   | thierry Douez wrote:
>   |
>   | > I tried alternative shell, because i got problems with command.exe !!!
>   |
>   | Did you look up the "shellCommand" property in the docs?
>   | Andu
>   |
> 
> Absolutely Yes !
> I re-read it again, and din't find a clue except it doesn't seem so
> clear what we can manage around this shell concept. My mother tongue is
> not english, so, could I misunderstand something ?

You can define which application will execute the commands passed with
shell().
If the shellCommand is "command.exe" you can `set the shellCommand to
"bash.exe"' or whatever and from then on whenever you do shell() it will
be bash executing.

> 
> thierry
> 
> Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <bugs at metacard.com>, not this list.
Andu


--------------- END metacard.v004.n530 ---------------




More information about the metacard mailing list