Re: [Pharo-project] Using Pharo from the command-line

2010-12-02 Thread Eliot Miranda
On Thu, Dec 2, 2010 at 8:30 AM, HwaJong Oh wrote: > > > * Run it with a headless Pharo: > {{{ > "Squeak 4.2.1beta1U.app/Contents/MacOS/Squeak VM Opt" \ > -headless pharo1.0-10418-BETAdev09.08.3.image \ > $PWD/fannkuch.st 6 > }}} > > > I'm wondering what the 6 does here? > P

Re: [Pharo-project] Using Pharo from the command-line

2010-12-02 Thread HwaJong Oh
* Run it with a headless Pharo: {{{ "Squeak 4.2.1beta1U.app/Contents/MacOS/Squeak VM Opt" \ -headless pharo1.0-10418-BETAdev09.08.3.image \ $PWD/fannkuch.st 6 }}} I'm wondering what the 6 does here? -- View this message in context: http://forum.world.st/Using-Pharo-f

Re: [Pharo-project] Using Pharo from the command-line

2009-09-07 Thread Stuart Herring
On Tue, Sep 8, 2009 at 1:54 AM, Igor Stasenko wrote: > The problem with command-line arguments as a file names, like: > > cat myfile.foo > > is that the location of myfile.foo is determined by using a search > path , usually provided in environment PATH var of a shell. That's not actually true - t

Re: [Pharo-project] Using Pharo from the command-line

2009-09-07 Thread David T. Lewis
See class ShellSyntax in package CommandShell (be sure to load the unit tests also). The class comment for ShellSyntax is: My instances implement parsing of strings in a manner similar to a simple Unix command shell. I provide path name expansion in the context of an external file system, a

Re: [Pharo-project] Using Pharo from the command-line

2009-09-07 Thread Igor Stasenko
The problem with command-line arguments as a file names, like: cat myfile.foo is that the location of myfile.foo is determined by using a search path , usually provided in environment PATH var of a shell. I worked in a different unix shells, and some of them, do not adding/using the ./ into the

Re: [Pharo-project] Using Pharo from the command-line

2009-09-07 Thread Damien Cassou
Hi Stefan, On Tue, Sep 1, 2009 at 8:38 PM, Stefan Marr wrote: > However as a thank you and for my own records, a small tutorial for > your google code wiki: I've put your text to http://code.google.com/p/pharo/wiki/CommandLine. Thank you very much -- Damien Cassou http://damiencassou.seasideho

Re: [Pharo-project] Using Pharo from the command-line

2009-09-02 Thread Stéphane Ducasse
Ok I will have a look to see how this can be fixed. On Sep 2, 2009, at 9:43 AM, John M McIntosh wrote: > I think here you are trying to get to test.sq > > I only adjust the incoming image name in the VM looking for ~ for > example, and resolving usage of ./ and ../ > > The additional command lin

Re: [Pharo-project] Using Pharo from the command-line

2009-09-02 Thread Stefan Marr
Hi: On 02 Sep 2009, at 09:23, Stéphane Ducasse wrote: >>> >> The full path requirement should be considered a bug from my >> perspective. > > mine too and I thought that john fixed that. > So did you try without? Even after doing a System->Software Update I need to give the absolute path. This i

Re: [Pharo-project] Using Pharo from the command-line

2009-09-02 Thread John M McIntosh
I think here you are trying to get to test.sq I only adjust the incoming image name in the VM looking for ~ for example, and resolving usage of ./ and ../ The additional command line items are then passed to the image unchanged, so it sees only 'test.sq' as the path name. You would have to

Re: [Pharo-project] Using Pharo from the command-line

2009-09-02 Thread Stéphane Ducasse
>> > The full path requirement should be considered a bug from my > perspective. mine too and I thought that john fixed that. So did you try without? > However as a thank you and for my own records, a small tutorial for > your google code wiki: GREAT! > =Command-line Scripts with a Headless Pha

Re: [Pharo-project] Using Pharo from the command-line

2009-09-01 Thread Stefan Marr
> I agree. Please help, we need you Well... > ScriptLoader loadLatestPackage: 'OSProcess' from: > 'http://www.squeaksource.com/OSProcess' > > By convention, Smalltalk scripts extension is '.st' and not '.sq'. But > that shouldn't change anything. > > You have to pass the full path to the script fi

Re: [Pharo-project] Using Pharo from the command-line

2009-09-01 Thread Damien Cassou
Hi, On Mon, Aug 31, 2009 at 10:46 PM, Stefan Marr wrote: > I just try to get started with Pharo to experiment with some > benchmarks and would be grateful for some basic hints, since the > documentation on pharo-project.org is not to excessive. I agree. Please help, we need you > As far as I r

[Pharo-project] Using Pharo from the command-line

2009-08-31 Thread Stefan Marr
Hello: I just try to get started with Pharo to experiment with some benchmarks and would be grateful for some basic hints, since the documentation on pharo-project.org is not to excessive. As far as I read in the documentation of the language shootout[1], I will need the OSProcess package.