Help with shell() script

Paul Williams p.williams at alkazar.net
Wed Aug 29 13:22:46 EDT 2007


Yes Xavier,
this is the problem, I am trying to script the openssl shell.
I can run a single command from the cmd.exe shell but it quits at the end, 
what I need is a way to open the opessl shell and then read and write shell 
commands to it but the '/C' keeps gettng in the way.

Has anybody else had any success with working with this?

Paul

> I checked it with a little script:
> 
> set the shellcommand to "c:\apps\cygwin\ls.exe"
> get shell("") -- needs the quotes apparently or it wont compile
> answer it
> 
> when you execute this you will see again the damn /c in the error
> message
> 
> Tested quickly in MetaCard... should be the same in Rev...
> 
> cheers
> Xavier
> 
> use-revolution-bounces at lists.runrev.com wrote on 29/08/2007
> 16:58:10:
> 
> > Hi Paul,
> > 
> > The problem, if im correct, is that you are assigning the shell to
> be 
> the 
> > exe to be exectuted in the shell...
> > 
> > Set the shellcommand to "cmd.exe" -- reset it to what it should be
> - if 
> im 
> > correct... i didn't know we could set "dir" and the shell
> command!
> > get shell(filepath && "Version")
> > 
> > should work better IMOHO...
> > 
> > Unfortunately i dont have the openssl.exe from cygwin to test.
> > 
> > hope that helps
> > cheers
> > Xavier
> > 
> > use-revolution-bounces at lists.runrev.com wrote on 29/08/2007
> 16:44:59:
> > 
> > > 
> > > I am trying to use the openssl function within cygwin in
> windows.
> > > The following is the script, instead of sending the command
> 'version' 
> to
> > > openssl it appears to be sending "/C" as the result quotes that
> "/C" 
> is 
> > not
> > > a valid command. 
> > > 
> > > The it variable contains:
> > > "openssl:Error: '/C' is an invalid command.
> > > Standard commands
> > > asn1parse ....... "
> > > 
> > > 
> > > Putting 'version' in at the prompt works OK.
> > > What am I doing wrong and where does the "/C" come from?
> > > 
> > > Paul
> > > 
> > > on mouseUp
> > >   set the hideconsolewindows to true
> > >   put   "c:\cygwin\bin\openssl.exe" into filepath
> > >   open process filepath
> > >   set shellcommand to "c:\cygwin\bin\openssl.exe"
> > >   put "version" into shellc
> > >   get shell("version") 
> > >    answer it
> > >  end mouseUp
> > > 
> > > _______________________________________________
> > > use-revolution mailing list
> > > use-revolution at lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-revolution
> > 
> > 
> > 
> > 
> --------------------------------------------------------------------
> --------
> > Clearstream Services S.A.
> > 42 Avenue JF Kennedy, L-1855 Luxembourg
> > Société anonyme is organised with limited liability
> > in the Grand Duchy of Luxembourg RC Luxembourg B 60911.
> > 
> > 
> > -----------------------------------------
> > 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.
> > 
> > Legally required information for business correspondence/
> > Gesetzliche Pflichtangaben fuer Geschaeftskorrespondenz:
> > http://deutsche-boerse.com/letterhead
> > 
> > END OF DISCLAIMER
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> 
> --------------------------------------------------------------------
> --------
> Clearstream Services S.A.
> 42 Avenue JF Kennedy, L-1855 Luxembourg
> Société anonyme is organised with limited liability
> in the Grand Duchy of Luxembourg RC Luxembourg B 60911.
> 
> 
> -----------------------------------------
> 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.
> 
> Legally required information for business correspondence/
> Gesetzliche Pflichtangaben fuer Geschaeftskorrespondenz:
> http://deutsche-boerse.com/letterhead
> 
> END OF DISCLAIMER
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.484 / Virus Database: 269.12.10/977 - Release Date:
> 28/08/2007 16:29
> 






More information about the use-livecode mailing list