On Mon, Apr 4, 2011 at 2:02 PM, Igor Stasenko <siguctua@gmail.com> wrote:
On 4 April 2011 13:55, Benjamin <benjamin.vanryseghem.pharo@gmail.com> wrote:
You have to add a new primitive I think ...
there was a discussion about adding it to Cog VMs.. but i don't know details. It could be there out of the box... just need to find it :)
I don't know why I remember some Cog extensions in StandardFileStream or something like that that could directly write to the standard output...but maybe I am just dreaming. Anyway wouldn't OSProcess do the job?
Ben
On Apr 3, 2011, at 10:14 PM, Nicolás Paez wrote:
Hi Hernan, I am know the Transcript and it not what I need. I need to integrate some my Smalltalk stuff other application, to more specific, I have an application that will call Smalltalk to perform certain operations and then the calling application needs to know the result of the operations. I could implement this using a file, but I want to avoid files if possible, that is why I want to write to the standard output. Saludos! Nico. blog: nicopaez.wordpress.com
On Sun, Apr 3, 2011 at 4:49 PM, Hernán Morales Durand <hernan.morales@gmail.com> wrote:
Hola Nico,
The "standard output" in most Smalltalks is usually considered the Transcript. You may use it in a method like this:
log: aString " Write aString to the transcript streamer "
Transcript cr; show: TimeStamp current; space; show: aString
is that useful to you?
Saludos
2011/4/3 Nicolás Paez <nicopaez@gmail.com>:
Hi, I need start my image, run a script and write some messages to the standard output. is there a way of writing to standard output?
Saludos! Nico. blog: nicopaez.wordpress.com
-- Hernán Morales Information Technology Manager, Institute of Veterinary Genetics. National Scientific and Technical Research Council (CONICET). La Plata (1900), Buenos Aires, Argentina. Telephone: +54 (0221) 421-1799. Internal: 422 Fax: 425-7980 or 421-1799.
-- Best regards, Igor Stasenko AKA sig.
-- Mariano http://marianopeck.wordpress.com