[Pharo-project] OSProcess in Pharo 2.0
Hi, I'd like to script some shell commands in Pharo 2.0. Is there any way to do that in Pharo? It seems OSProcess class is suitable but seems it's not yet fully ported in Pharo 2.0. Thanks, Roberto
Is OSProcess still the best/correct way? I've been using it in 2.0. Seems to work. load: MCHttpRepository location: 'http://smalltalkhub.com/mc/dh83/fisleg/main' user: '' password: '' then do: Gofer new squeaksource: 'MetacelloRepository'; package: 'ConfigurationOfOSProcess'; load. (Smalltalk at: #ConfigurationOfOSProcess) project bleedingEdge load. Is the only issue updating to FileSystem, or are there other changes that are needed for Pharo 2.0? On Fri, Nov 9, 2012 at 9:35 AM, roberto.minelli@usi.ch <roberto.minelli@usi.ch> wrote:
Hi,
I'd like to script some shell commands in Pharo 2.0. Is there any way to do that in Pharo? It seems OSProcess class is suitable but seems it's not yet fully ported in Pharo 2.0.
Thanks, Roberto
both are right 1) OSProcess has not been fully ported to 2.0 2) you can load a compatibility package (the one of Camillo or FileDirectory package from the graveyard, http://smalltalkhub.com/#!/~Pharo/Graveyard20), and most probably will work fine in 2.0, since the OSProcess problems are due to the FileSystem replacement. and of course, if someone want to collaborate by doing OSProcess work fine in 2.0 without needing to load an obsolete package, that would be great :) Esteban On Nov 13, 2012, at 9:59 AM, "Peter H. Meadows" <peter.h.meadows@googlemail.com> wrote:
Is OSProcess still the best/correct way?
I've been using it in 2.0. Seems to work.
load:
MCHttpRepository location: 'http://smalltalkhub.com/mc/dh83/fisleg/main' user: '' password: ''
then do:
Gofer new squeaksource: 'MetacelloRepository'; package: 'ConfigurationOfOSProcess'; load.
(Smalltalk at: #ConfigurationOfOSProcess) project bleedingEdge load.
Is the only issue updating to FileSystem, or are there other changes that are needed for Pharo 2.0?
On Fri, Nov 9, 2012 at 9:35 AM, roberto.minelli@usi.ch <roberto.minelli@usi.ch> wrote:
Hi,
I'd like to script some shell commands in Pharo 2.0. Is there any way to do that in Pharo? It seems OSProcess class is suitable but seems it's not yet fully ported in Pharo 2.0.
Thanks, Roberto
oh. Better to follow: http://book.pharo-project.org/book/PharoTools/OSProcess/ This seems to work fine. I saw somewhere: "since os process isn't really reliable in Pharo-2.0". Is that/was that correct? On Tue, Nov 13, 2012 at 8:59 AM, Peter H. Meadows <peter.h.meadows@googlemail.com> wrote:
Is OSProcess still the best/correct way?
I've been using it in 2.0. Seems to work.
load:
MCHttpRepository location: 'http://smalltalkhub.com/mc/dh83/fisleg/main' user: '' password: ''
then do:
Gofer new squeaksource: 'MetacelloRepository'; package: 'ConfigurationOfOSProcess'; load.
(Smalltalk at: #ConfigurationOfOSProcess) project bleedingEdge load.
Is the only issue updating to FileSystem, or are there other changes that are needed for Pharo 2.0?
On Fri, Nov 9, 2012 at 9:35 AM, roberto.minelli@usi.ch <roberto.minelli@usi.ch> wrote:
Hi,
I'd like to script some shell commands in Pharo 2.0. Is there any way to do that in Pharo? It seems OSProcess class is suitable but seems it's not yet fully ported in Pharo 2.0.
Thanks, Roberto
I'm working on a simple library for NativeBoost that will execute commands on the shell and return stdin and stderr to the image. This will take me one or two weeks to complete though. Once I'm finished I'll post it on the list (I guess there's a lot of people who would want something like this). This library should (hopefully) make OSProcess obsolete. Cheers, Max On 09.11.2012, at 10:35, roberto.minelli@usi.ch wrote:
Hi,
I'd like to script some shell commands in Pharo 2.0. Is there any way to do that in Pharo? It seems OSProcess class is suitable but seems it's not yet fully ported in Pharo 2.0.
Thanks, Roberto
On Tue, Nov 13, 2012 at 11:24 AM, Max Leske <maxleske@gmail.com> wrote:
I'm working on a simple library for NativeBoost that will execute commands on the shell and return stdin and stderr to the image. This will take me one or two weeks to complete though. Once I'm finished I'll post it on the list (I guess there's a lot of people who would want something like this). This library should (hopefully) make OSProcess obsolete.
pleasssseeeeeee -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
:D Thanks Damien On 15.11.2012, at 16:47, Damien Cassou <damien.cassou@gmail.com> wrote:
On Tue, Nov 13, 2012 at 11:24 AM, Max Leske <maxleske@gmail.com> wrote:
I'm working on a simple library for NativeBoost that will execute commands on the shell and return stdin and stderr to the image. This will take me one or two weeks to complete though. Once I'm finished I'll post it on the list (I guess there's a lot of people who would want something like this). This library should (hopefully) make OSProcess obsolete.
pleasssseeeeeee
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
On Thu, Nov 15, 2012 at 4:47 PM, Damien Cassou <damien.cassou@gmail.com>wrote:
On Tue, Nov 13, 2012 at 11:24 AM, Max Leske <maxleske@gmail.com> wrote:
I'm working on a simple library for NativeBoost that will execute commands on the shell and return stdin and stderr to the image. This will take me one or two weeks to complete though. Once I'm finished I'll post it on the list (I guess there's a lot of people who would want something like this). This library should (hopefully) make OSProcess obsolete.
pleasssseeeeeee
Don't be so rude with OSProcess please. This is a great tool and has been helping the community since a really long time. And Dave was always there willing to help as much as possible.
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
-- Mariano http://marianopeck.wordpress.com
On Nov 15, 2012, at 10:52 PM, Mariano Martinez Peck wrote:
On Thu, Nov 15, 2012 at 4:47 PM, Damien Cassou <damien.cassou@gmail.com> wrote: On Tue, Nov 13, 2012 at 11:24 AM, Max Leske <maxleske@gmail.com> wrote:
I'm working on a simple library for NativeBoost that will execute commands on the shell and return stdin and stderr to the image. This will take me one or two weeks to complete though. Once I'm finished I'll post it on the list (I guess there's a lot of people who would want something like this). This library should (hopefully) make OSProcess obsolete.
pleasssseeeeeee
Don't be so rude with OSProcess please. This is a great tool and has been helping the community since a really long time. And Dave was always there willing to help as much as possible.
Yes this is true. Dave is always supportive and I really appreciate his attitude. Ideally I would like to have both a nice one working everywhere.
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
-- Mariano http://marianopeck.wordpress.com
On 16.11.2012, at 11:42, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
On Nov 15, 2012, at 10:52 PM, Mariano Martinez Peck wrote:
On Thu, Nov 15, 2012 at 4:47 PM, Damien Cassou <damien.cassou@gmail.com> wrote: On Tue, Nov 13, 2012 at 11:24 AM, Max Leske <maxleske@gmail.com> wrote:
I'm working on a simple library for NativeBoost that will execute commands on the shell and return stdin and stderr to the image. This will take me one or two weeks to complete though. Once I'm finished I'll post it on the list (I guess there's a lot of people who would want something like this). This library should (hopefully) make OSProcess obsolete.
pleasssseeeeeee
Don't be so rude with OSProcess please. This is a great tool and has been helping the community since a really long time. And Dave was always there willing to help as much as possible.
Yes this is true. Dave is always supportive and I really appreciate his attitude. Ideally I would like to have both a nice one working everywhere.
I didn't mean to step on anybody's toes. Sorry if I did. At the moment we would be completely and utterly lost without OSProcess. So yes, OSProcess is great. But then, for one, it's a VM plugin. There's also a lot of magic going on wich makes it kind of hard to debug sometimes. Talking of an "OSProcess replacement" was a bit harsh I reckon, what I actually ment was "OSProcess alternative", especially a light one (for now). Cheers, Max
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
-- Mariano http://marianopeck.wordpress.com
On Nov 13, 2012, at 11:24 AM, Max Leske wrote:
I'm working on a simple library for NativeBoost that will execute commands on the shell and return stdin and stderr to the image. This will take me one or two weeks to complete though. Once I'm finished I'll post it on the list (I guess there's a lot of people who would want something like this). This library should (hopefully) make OSProcess obsolete.
Cheers, Max
Excellent. I love to hear that. Now it will only replace OSProcess on system that support NB. Stef
On 16.11.2012, at 07:20, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
On Nov 13, 2012, at 11:24 AM, Max Leske wrote:
I'm working on a simple library for NativeBoost that will execute commands on the shell and return stdin and stderr to the image. This will take me one or two weeks to complete though. Once I'm finished I'll post it on the list (I guess there's a lot of people who would want something like this). This library should (hopefully) make OSProcess obsolete.
Cheers, Max
Excellent. I love to hear that. Now it will only replace OSProcess on system that support NB.
Yes of course. But NB will be everywhere soon, right? :-p
Stef
On Nov 16, 2012, at 9:57 AM, Max Leske <maxleske@gmail.com> wrote:
On 16.11.2012, at 07:20, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
On Nov 13, 2012, at 11:24 AM, Max Leske wrote:
I'm working on a simple library for NativeBoost that will execute commands on the shell and return stdin and stderr to the image. This will take me one or two weeks to complete though. Once I'm finished I'll post it on the list (I guess there's a lot of people who would want something like this). This library should (hopefully) make OSProcess obsolete.
Cheers, Max
Excellent. I love to hear that. Now it will only replace OSProcess on system that support NB.
Yes of course. But NB will be everywhere soon, right? :-p
yep :) (but of course, "soon" is a subjective word... )
Stef
Hello 2012/11/16 Max Leske <maxleske@gmail.com>
On 16.11.2012, at 07:20, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
On Nov 13, 2012, at 11:24 AM, Max Leske wrote:
I'm working on a simple library for NativeBoost that will execute
commands on the shell and return stdin and stderr to the image.
This will take me one or two weeks to complete though. Once I'm finished I'll post it on the list (I guess there's a lot of people who would want something like this). This library should (hopefully) make OSProcess obsolete.
Cheers, Max
Excellent. I love to hear that. Now it will only replace OSProcess on system that support NB.
Yes of course. But NB will be everywhere soon, right? :-p
What about mobile platforms? They not allow NB code generation approach (IOS for example). But I think OSProcess not work on such platforms too.
participants (8)
-
Damien Cassou -
Denis Kudriashov -
Esteban Lorenzano -
Mariano Martinez Peck -
Max Leske -
Peter H. Meadows -
roberto.minelli@usi.ch -
Stéphane Ducasse