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: http://comments.gmane.org/gmane.comp.lang.smalltalk.pharo.user/12496 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 <mayuresh@kathe.in> 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