pete at mozdevgroup.com
Tue Mar 2 11:01:22 EST 2004
Brian Thomason wrote:
> Hello all,
> I am looking to write a frontend to Bittorent in XUL and thus need to
> be able to read the stdout of the bittorrent client, continuously,
> buffered 6 libes at a time.
> I am aware that you can execute a process like this:
> const PROGRAM = '/path/to/your/process'; //put the real path to your
> const PROGRAM_ARGS = ['-chrome']; //put any arguments for your process
> const RUNNING = false;
> var processor = new IO_file_processInstantiator();
> processor.setProcess(RUNNING, PROGRAM_ARGS);
> But is there any way to read and buffer the stdout of the process as
I'm really not sure if you can. I do know that protozilla provides a way
to read stdout similar to php pasthru() method. I don't think it is
implemented on all platforms though.
> I have also looked into the IPC extension from Doug Turner, but find
> little in the way of documentation concerning it.
> Thanks in advance for your time, and any help would be greatly
> Jslib mailing list
> Jslib at mozdev.org
More information about the Jslib