[FreeNX-kNX] Sanity check...
Fabian Franz
FabianFranz at gmx.de
Sun Apr 24 00:19:55 UTC 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Samstag, 23. April 2005 23:04 schrieb Ed Warnicke:
> Wouldn't it be a better solution to move the:
>
> NX> 710 Session status: running
> into the monitor if clause:
>
> if stringinstring "Info: Waiting for connection from" "$line"
>
> That way you would never get the nxclient sending
> "bye" before the nxagent was actually up and awaiting
> connections? This *should* also take care of the spurious
> "NX>" problem as well.
Yes, this sounds like a good idea. I'll try it out.
>
> You could then have your netcat line be something like:
>
> netcat 127.0.0.1 $PROXY_DISPLAY &
> echo_x "Bye"
> echo_x "NX> 999 Bye"
> wait $!
>
> so that nxserver ONLY responds to nxclient with it's
> Bye message once all of the pipes are hooked up.
> (Please note, the above example is very rough,
> you'd want to check various exit code to make
> sure the pipe really are hooked up.)
There is a problem on that one ... You can't check the exit code with & ...
But I don't think putting the netcat after sending Bye is too problematic. Not
with the proposed exec 1>&2 anyway ...
> Thoughts?
Sounds like a good design.
If you want you can make a patch. I'll gladly apply it.
cu
Fabian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFCauYuI0lSH7CXz7MRArKiAJ9yTDwFP5Ro5SCBdYePPddeKF9QJACcCotQ
chTQck/pWDaiBQMbW3SKyyc=
=NP6Q
-----END PGP SIGNATURE-----
More information about the FreeNX-kNX
mailing list