Hi All,
can you please help me to get clarified about the 'write' command.
I have a script that sends a content of a file msg.txt to other user 'User B' using 'write' command.
Script:
------
.....
cat msg.txt | write "user B"
.....
Issue: I face a issue here, this scripts sends message to user B successfully. But the message is interuppting user B even if he is busy doing other jobs or even if he is 'vi' some files.
so the message is not clear to the user.
please clarify me on the below things:
1. Can I send the message as a pop up
2. Can I send a colored text to differentiate the message content.
3. Can I let the terminal of User-B to blink upon sending the message.
4. Can I clear the message content from his terminal if he hits Ctrl+c.
5. Please assist me to know whether I can achieve sending a pop up message to other terminals using any other commands.
Thanks in advance for all of your support and assistance.!!