[Newbies] OSProcess example

Prashanth Hebbar hebbarp at gmail.com
Thu Oct 13 09:43:10 UTC 2011


Dave,

Thank you very much. ProcessWrapper by Levente Uzonyi works for me. I am
able to accomplish what I want.

Regards,

On Wednesday, October 12, 2011, David T. Lewis <lewis at mail.msen.com> wrote:
> Hi Prashanth,
>
> The VM that you are using does not include the necessary plugin support
> for OSProcess. There are some newer VMs that do have this support,
> for example this one:
>
>  http://www.mirandabanda.org/files/Cog/VM/VM.r2499/cogwin.zip
>
> But this will not work with Squeak 3.8.
>
> Since you are using a Squeak 3.8 image on Windows, I suggest that
> you try using the Process Wrapper package instead of OSProcess.
> This is a package written by Levente Uzonyi that should do exactly
> what you need. You can find it on SqueakSource:
>
>  http://www.squeaksource.com/ProcessWrapper
>
>  http://squeaksource.com/@A3eR3kgBj6bF6Btx/uXSs3tq9
>
> If this does not work for you, please write again and I will try
> to find an OSProcess plugin for Windows for you.
>
> Dave
>
>
> On Wed, Oct 12, 2011 at 01:23:36PM +0530, Prashanth Hebbar wrote:
>> Dave,
>>
>>
>>    1. I installed CommandShell and could get working the following
commands:
>>    'inspect', 'edit', 'pwd', etc but nothing beyond it.
>>    2. 'ruby twt-auth.rb'  inside Squeak Shell throws up an error saying:
>>    'cannot access system to run...
>>    3. "(PipeableOSProcess command: 'echo test') output" throws up  a DNU
on
>>    ExternalWindowsProcess class >> defaultShellPath
>>
>>
>> I am trying to trigger a ruby script which posts to twitter.
>>
>> My environment:
>>
>> OS: Windows 7
>> Squeak version: 3.8
>> Squeak VM version: 3.7.1 (compiled using gcc)
>> (also tried it on the latest VM 4.1.1)
>>
>> I will continue to investigate. Any pointers on what I am doing wrong
will
>> help me.
>>
>> Thanks in advance.
>>
>> Regards,
>>
>>
>> On Tue, Oct 11, 2011 at 5:02 AM, Prashanth Hebbar <hebbarp at gmail.com>
wrote:
>>
>> > Dave,
>> > Thanks for the pointer. Somehow, I missed the VM part. I will
investigate.
>> > I am on the road today whole day. Will try this tomorrow (Wednesday )
and
>> > report back.
>> >
>> > Regards,
>> >
>> >
>> > On Monday, October 10, 2011, David T. Lewis <lewis at mail.msen.com>
wrote:
>> > > On Mon, Oct 10, 2011 at 08:58:38PM +0530, Prashanth Hebbar wrote:
>> > >> Hi,
>> > >>
>> > >> I am trying to trigger a ruby script from within Squeak. I loaded
>> > OSProcess
>> > >> but none of the examples are working. Are there any pointers on how
to
>> > use
>> > >> OSProcess correctly.
>> > >>
>> > >> I am using a 3.8 stable version.
>> > >
>> > > Hello Prashanth,
>> > >
>> > > You can find some general information here:
>> > >  http://wiki.squeak.org/squeak/708
>> > >
>> > > OSProcess requires a special plugin for the VM. If OSProcess is not
>> > > working, it is possible that the VM you are running does not contain
>> > > this support. Can you say what operating system you are using, and
>> > > if possible what VM?
>> > >
>> > > I will mention also that if you want to interact with a ruby script
>> > > from Squeak through pipes (in other words, read and write the
standard
>> > > input and output streams from the ruby program), then you will also
>> > > want to load package CommandShell and use the class
PipeableOSProcess.
>> > >
>> > > Dave
>> > >
>> > > _______________________________________________
>> > > Beginners mailing list
>> > > Beginners at lists.squeakfoundation.org
>> > > http://lists.squeakfoundation.org/mailman/listinfo/beginners
>> > >
>> >
>> > --
>> > Prashanth Hebbar
>> > Bangalore
>> >
>>
>>
>>
>> --
>> Prashanth Hebbar
>> Bangalore
>
>> _______________________________________________
>> Beginners mailing list
>> Beginners at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>

-- 
Prashanth Hebbar
Bangalore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20111013/1f60819b/attachment.htm


More information about the Beginners mailing list