[Newbies] Re: OSProcess example
hebbarp at gmail.com
Wed Oct 12 07:53:36 UTC 2011
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.
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
Thanks in advance.
On Tue, Oct 11, 2011 at 5:02 AM, Prashanth Hebbar <hebbarp at gmail.com> wrote:
> 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.
> 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
> >> but none of the examples are working. Are there any pointers on how to
> >> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners