Yes, I am subscribed.
> With MozRepl, if you connect two or more sessions and execute e.g.
> "2+2" in the first, "4+1" in the second, etc. results aren't going to
> be mixed up. Input-read-eval-print happens within a single
> invocation.
I think I understand what you mean by "single invocation". This might
be true within the mozrepl, but I wonder how you can ensure over a
network/telnet connection that the result is communicated back and
forth "as one". First "some script" has to send mozrepl a command
through the tcp, right? Then the result is received through the same
socket. In this case it is possible that the result can be received in
a different order. Depending on the timing the following could happen
TCPSend from Script1
TCPRecv from Script2
TCPRecv from Script1
Script2 is not supposed to receive the result from Script1 (or should
ignore it, but how?)
I guess what that means is that for interactive use Mozrepl works
perfectly, but for it is probably not well suitable to use it for
scripting or so (like Thorsten tried).
Are there other ways to connect synchronously to Mozrepl or Firefox?
(may be similar to COM an IE)?
Regarding:
> > By the way, in the work-around I noticed a problem. Example: 10
> > scripts run and open 10 firefox/mozrepl at ports from 4242 to 4251 and
> > at the end 9 of the 10 firefox are closed again. I would expect that
> > in the end there would be only one active listening Mozrepl left.
> > However, there are still all 10. Only when I close the last open
> > firefox window, all ports are closed. Is that a bug?
>
> I have no idea, I suggest you talk with AutoIt developers about this. :)
I think this is unrelated to AutotoIt. You can test it yourself:
firefox -repl 4242
firefox -repl 4243
firefox -repl 4244
Now close two firefox windows (e.g. 4243/4). If you look at the active
ports, you can see that 4242-4244 are still active, but it should be
only. I don't think that is right.
Yes, I am subscribed.
> With MozRepl, if you connect two or more sessions and execute e.g.
> "2+2" in the first, "4+1" in the second, etc. results aren't going to
> be mixed up. Input-read-eval-print happens within a single
> invocation.
I think I understand what you mean by "single invocation". This might
be true within the mozrepl, but I wonder how you can ensure over a
network/telnet connection that the result is communicated back and
forth "as one". First "some script" has to send mozrepl a command
through the tcp, right? Then the result is received through the same
socket. In this case it is possible that the result can be received in
a different order. Depending on the timing the following could happen
TCPSend from Script1
TCPRecv from Script2
TCPRecv from Script1
Script2 is not supposed to receive the result from Script1 (or should
ignore it, but how?)
I guess what that means is that for interactive use Mozrepl works
perfectly, but for it is probably not well suitable to use it for
scripting or so (like Thorsten tried).
Are there other ways to connect synchronously to Mozrepl or Firefox?
(may be similar to COM an IE)?
-Peter
Regarding:
> > By the way, in the work-around I noticed a problem. Example: 10
> > scripts run and open 10 firefox/mozrepl at ports from 4242 to 4251 and
> > at the end 9 of the 10 firefox are closed again. I would expect that
> > in the end there would be only one active listening Mozrepl left.
> > However, there are still all 10. Only when I close the last open
> > firefox window, all ports are closed. Is that a bug?
>
> I have no idea, I suggest you talk with AutoIt developers about this. :)
I think this is unrelated to AutotoIt. You can test it yourself:
firefox -repl 4242
firefox -repl 4243
firefox -repl 4244
Now close two firefox windows (e.g. 4243/4). If you look at the active
ports, you can see that 4242-4244 are still active, but it should be
only. I don't think that is right.
On Feb 25, 12:29 am, Massimiliano Mirra <
hyperstr...@gmail.com> wrote: