On 1997-12-22T09:56:07,
Michael O'Reilly <michael@metal.iinet.net.au> said:
> No, you're engaging in minor thinko here. When you do
> echo blah > /proc/PID/fd/0
>=20
> You're acting as tho you where process PID. I.e. as if process PID had
> done a write(0, "blah\n", 5);
Ok, if thats how it is supposed to work, this is correct behaviour.
> which isn't what you want at all. What you want to is find the process
> that is actually writing out, (i.e. the other end of the pipe or
> whatnot) and do your write there.
>=20
> Of course, this fails for processes reading from devices or files.
See, this is the point. I want to simulate keyboard entry. How would I do
this?
--=20
Lars Marowsky-Bree :homepage email: \ geek, BOFH, psychopath, magician, /
http://teuto.net/~lmb/ lmb@teuto.net \ killer, looney, genius, pervert /
pgp-key-id: 0x09e360c5 / ff 2a 82 e8 6b 85 79 23 9c da b5 81 d4 fc 29 e6
< to prevent forgery, all email by me is signed with PGP >
--mUdgXdNLPkN/XLhk
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
iQEVAwUBNJ5RZ6lZtowJ42DFAQFa0QgAmjdtPx0+519Xolxn4DpSYRvHcCS+VuPq
ncsFPQGZqM0LPfaYgeGnV/T+K5egbI2e0T0EEXgTeEYHpPGtgqNk5dg+sk9VnLU6
yI6TaDGgZk/LN4z5IihKxDJBmO5s89+k9OkFsHmCxcxTyOTBcbsc2OFXrAX1pBnf
DJYV/bvr2tfdOzjNKmZPwR0rGwGTlbC+OnnbN3l1ItI4GQVCfeR03iIMJKiwGhLC
OwG28xf7dnwA3UX7a9OI8RvvQgAaXWTuFQSM9qL8fkaGH2nozGRcgckHceGQxwG7
nBnPuX6y1eHTvib5EY96iks/34dG7T2RrjN3nFwl3za8jjYH6SwBxA==
=OuTQ
-----END PGP SIGNATURE-----
--mUdgXdNLPkN/XLhk--