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.
Regards,
Prashanth Hebbar Bangalore _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
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 [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
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 <[hidden email]> 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 > [hidden email] > http://lists.squeakfoundation.org/mailman/listinfo/beginners > -- Prashanth Hebbar Bangalore _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
Dave,
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 <[hidden email]> wrote: Dave, Prashanth Hebbar Bangalore _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
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 <[hidden email]> 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 <[hidden email]> 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 > > > [hidden email] > > > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > > > > > > -- > > Prashanth Hebbar > > Bangalore > > > > > > -- > Prashanth Hebbar > Bangalore > _______________________________________________ > Beginners mailing list > [hidden email] > http://lists.squeakfoundation.org/mailman/listinfo/beginners _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 >> > > [hidden email] >> > > http://lists.squeakfoundation.org/mailman/listinfo/beginners >> > > >> > >> > -- >> > Prashanth Hebbar >> > Bangalore >> > >> >> >> >> -- >> Prashanth Hebbar >> Bangalore >> _______________________________________________ >> Beginners mailing list >> [hidden email] >> http://lists.squeakfoundation.org/mailman/listinfo/beginners > > _______________________________________________ > Beginners mailing list > [hidden email] > http://lists.squeakfoundation.org/mailman/listinfo/beginners > -- Prashanth Hebbar Bangalore _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
On Thu, Oct 13, 2011 at 03:13:10PM +0530, Prashanth Hebbar wrote:
> Dave, > > Thank you very much. ProcessWrapper by Levente Uzonyi works for me. I am > able to accomplish what I want. Thank you for the feedback, I'm glad it's working! Dave _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
Dave,
I must add that I saw an error pop up while downloading the plugin (not the core mcz). All I saw in the debugger stack was that "default" was giving problem I was in no mood to dive in, so at random picked up an older version (ProcessWrapper-Core-ul.27.mcz) to load everything again. And it worked. This may serve as part of documentation. Regards, On Thu, Oct 13, 2011 at 5:40 PM, David T. Lewis <[hidden email]> wrote:
Prashanth Hebbar Bangalore _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
Free forum by Nabble | Edit this page |