Library for shell interfacing on Mac

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

Library for shell interfacing on Mac

Peter Uhnak
Hi,

what is the recommended way to execute shell commands on Mac from Pharo?

Apparently NBMacShell is not supported anymore.

Thanks,
Peter
Reply | Threaded
Open this post in threaded view
|

Re: Library for shell interfacing on Mac

John Pfersich
I use OSProcess and CommandShell in Pharo 4.0. Works well. Load them by 

Gofer new
squeaksource: 'OSProcess';
package: 'OSProcess';
load.
Gofer new
squeaksource: 'CommandShell';
package: 'CommandShell-Piping';
load.
and then do something like

PipeableOSProcess command: 'netstat -a | grep LISTEN | grep 27017'

On Mon, Feb 29, 2016 at 1:07 AM, Peter Uhnák <[hidden email]> wrote:
Hi,

what is the recommended way to execute shell commands on Mac from Pharo?

Apparently NBMacShell is not supported anymore.

Thanks,
Peter

Reply | Threaded
Open this post in threaded view
|

Re: Library for shell interfacing on Mac

John Pfersich
Forgot add that this info is from
http://pharo.gemtalksystems.com/book/PharoTools/OSProcess/

On Monday, February 29, 2016, john pfersich <[hidden email]> wrote:
I use OSProcess and CommandShell in Pharo 4.0. Works well. Load them by 

Gofer new
squeaksource: 'OSProcess';
package: 'OSProcess';
load.
Gofer new
squeaksource: 'CommandShell';
package: 'CommandShell-Piping';
load.
and then do something like

PipeableOSProcess command: 'netstat -a | grep LISTEN | grep 27017'

On Mon, Feb 29, 2016 at 1:07 AM, Peter Uhnák <<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;i.uhnak@gmail.com&#39;);" target="_blank">i.uhnak@...> wrote:
Hi,

what is the recommended way to execute shell commands on Mac from Pharo?

Apparently NBMacShell is not supported anymore.

Thanks,
Peter

Reply | Threaded
Open this post in threaded view
|

Re: Library for shell interfacing on Mac

abergel
In reply to this post by John Pfersich
Thanks John. Peter, can you updating the GraphViz layout with OSProcess? That would be really helpful

Cheers,
Alexandre


> On Feb 29, 2016, at 10:54 AM, john pfersich <[hidden email]> wrote:
>
> I use OSProcess and CommandShell in Pharo 4.0. Works well. Load them by
>
> Gofer new
> squeaksource: 'OSProcess';
> package: 'OSProcess';
> load.
>
> Gofer new
> squeaksource: 'CommandShell';
> package: 'CommandShell-Piping';
> load.
>
> and then do something like
>
> PipeableOSProcess command: 'netstat -a | grep LISTEN | grep  27017'
>
> On Mon, Feb 29, 2016 at 1:07 AM, Peter Uhnák <[hidden email]> wrote:
> Hi,
>
> what is the recommended way to execute shell commands on Mac from Pharo?
>
> Apparently NBMacShell is not supported anymore.
>
> Thanks,
> Peter
>

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




Reply | Threaded
Open this post in threaded view
|

Re: Library for shell interfacing on Mac

Thierry Goubier
Hi Alexandre, Peter,

on Mac OS/X and Pharo 5/Spur, you should use OSSubprocess[1].

Thierry

[1] http://forum.world.st/ANN-OSSubprocess-first-milestone-tp4871382.html

Le 29/02/2016 18:30, Alexandre Bergel a écrit :

> Thanks John. Peter, can you updating the GraphViz layout with OSProcess? That would be really helpful
>
> Cheers,
> Alexandre
>
>
>> On Feb 29, 2016, at 10:54 AM, john pfersich <[hidden email]> wrote:
>>
>> I use OSProcess and CommandShell in Pharo 4.0. Works well. Load them by
>>
>> Gofer new
>> squeaksource: 'OSProcess';
>> package: 'OSProcess';
>> load.
>>
>> Gofer new
>> squeaksource: 'CommandShell';
>> package: 'CommandShell-Piping';
>> load.
>>
>> and then do something like
>>
>> PipeableOSProcess command: 'netstat -a | grep LISTEN | grep  27017'
>>
>> On Mon, Feb 29, 2016 at 1:07 AM, Peter Uhnák <[hidden email]> wrote:
>> Hi,
>>
>> what is the recommended way to execute shell commands on Mac from Pharo?
>>
>> Apparently NBMacShell is not supported anymore.
>>
>> Thanks,
>> Peter
>>
>