Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Copying text between logged in users' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Copying text between logged in users
Authored by: makaio on Nov 27, '03 05:37:40PM
This fails for me with a "permission denied" error. It appears that only members of the group "tty" have permission to write to this. (I know that there are several ways around this, but none of them are ideal.) In any case, this seems like an abuse of TTYs.

Another solution might be to use a FIFO. For example:


mkfifo /tmp/blah
echo "important text" > /tmp/blah

And after you switch users and whenever you decide to retrieve the text:


cat /tmp/blah

In this case, you don't have to worry about which TTY corresponds to which terminal.

[ Reply to This | # ]