Re: Booting into Pharo!

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

Re: Booting into Pharo!

abergel
Just wondering: what are your initial requirements that make you define this project?

Cheers,
Alexandre


On Sep 19, 2014, at 9:18 AM, Mayuresh Kathe <[hidden email]> wrote:

> Hello,
>
> While I am still waiting for my copy of the PBE, I would like to
> initiate work on a project (along with friends).
>
> The idea is to build a minimalist Linux based system which would boot up
> straight into a full-screen Pharo environment.
>
> The system itself would be single user, consisting of not more than a
> Linux kernel, a few system utilities (busybox?), X (KDrive?) and Pharo
> (vm + image + ...).
>
> Would like to know if it's some how possible to control external
> programs from within Pharo, essentially shell scripts for network setup,
> etc.
>
> Thanks,
>
> ~Mayuresh
>
>

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




Reply | Threaded
Open this post in threaded view
|

Re: Booting into Pharo!

philippeback


Sure is.

You want to use OSProcess.

Load OSProcess from the configuration browser.

You can get environment variables like this: 

dirString:= OSProcess thisOSProcess environment at: #PRJ_DIR.

Check this thread:

Example:

command := 'tac ', file fullName, ' | head -200'.
output := ''.
c :=  (PipeableOSProcess command: command).
output := c output.
] ensure: [ c closePipes ].

 Or check for all references for PipeableOSProcess, there are a ton.

Do not forget the closePipes or you'll run out of resources at one point.

Phil


On Fri, Sep 19, 2014 at 6:18 PM, Mayuresh Kathe <[hidden email]> wrote:
Hello,

While I am still waiting for my copy of the PBE, I would like to
initiate work on a project (along with friends).

The idea is to build a minimalist Linux based system which would boot up
straight into a full-screen Pharo environment.

The system itself would be single user, consisting of not more than a
Linux kernel, a few system utilities (busybox?), X (KDrive?) and Pharo
(vm + image + ...).

Would like to know if it's some how possible to control external
programs from within Pharo, essentially shell scripts for network setup,
etc.

Thanks,

~Mayuresh




Reply | Threaded
Open this post in threaded view
|

Re: Booting into Pharo!

HilaireFernandes
In reply to this post by abergel
Once I tested it, not sure was Squeak or Pharo, running under the
Console FrameBuffer.
So your basic workstation can just be a Console only Linux (no X window).

Hilaire

Le 19/09/2014 18:18, Mayuresh Kathe a écrit :

> Hello,
>
> While I am still waiting for my copy of the PBE, I would like to
> initiate work on a project (along with friends).
>
> The idea is to build a minimalist Linux based system which would boot up
> straight into a full-screen Pharo environment.
>
> The system itself would be single user, consisting of not more than a
> Linux kernel, a few system utilities (busybox?), X (KDrive?) and Pharo
> (vm + image + ...).
>
> Would like to know if it's some how possible to control external
> programs from within Pharo, essentially shell scripts for network setup,
> etc.
>
> Thanks,
>
> ~Mayuresh
>
>
>


--
Dr. Geo - http://drgeo.eu
iStoa - http://istao.drgeo.eu