How to invoke other program in squeak?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to invoke other program in squeak?

albertlee
I want to invoke some script written in perl/python, how to do that in squeak ?
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: How to invoke other program in squeak?

David T. Lewis
On Mon, Jun 23, 2008 at 09:26:29AM +0800, Albert Lee wrote:
> I want to invoke some script written in perl/python, how to do that in squeak ?

There are add-on packages that will let you do this. In your Squeak image, use
either a SqueakMap browser or a Universes browser, and look for the packages
FFI, CommandShell, and OSProcess.

FFI is the Foreign Function Interface, which includes the class Win32Shell
that may help if you are using Windows.

If you are using Linux, Unix, or Mac OS X, then OSProcess with CommandShell will
give you access to external programs like perl and python. In the CommandShell
package, look at PipeableOSProcess class>>tkExample for an example of controlling
a tk/tcl script program from Squeak.

For more information:
  http://wiki.squeak.org/squeak/1414
  http://wiki.squeak.org/squeak/1914
  http://wiki.squeak.org/squeak/708

Dave

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: How to invoke other program in squeak?

albertlee
2008/6/23 David T. Lewis <[hidden email]>:

> On Mon, Jun 23, 2008 at 09:26:29AM +0800, Albert Lee wrote:
>> I want to invoke some script written in perl/python, how to do that in squeak ?
>
> There are add-on packages that will let you do this. In your Squeak image, use
> either a SqueakMap browser or a Universes browser, and look for the packages
> FFI, CommandShell, and OSProcess.
>
> FFI is the Foreign Function Interface, which includes the class Win32Shell
> that may help if you are using Windows.
>
> If you are using Linux, Unix, or Mac OS X, then OSProcess with CommandShell will
> give you access to external programs like perl and python. In the CommandShell
> package, look at PipeableOSProcess class>>tkExample for an example of controlling
> a tk/tcl script program from Squeak.
>
> For more information:
>  http://wiki.squeak.org/squeak/1414
>  http://wiki.squeak.org/squeak/1914
>  http://wiki.squeak.org/squeak/708
>
> Dave
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>

Thanks for your reply, It's useful.
I played squeak and Seaside for less than a week. It's amazing.
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners