I want to send some message to some of my friends who have logged in at that time.I am using "write" command to do this in my script but what happening is some of the id which I am sending message has been logged in at more than one places because of this the command next to this command is not executing.
Below are the command I am using:
Notification_List="id1 id2 id3"
for write_List in $Notification_List
write $write_List << Message
Just for test
echo "Message has been sent"
when executing this command it is saying
id2 is logged on more than one place.
You are connected to "pts/2".
Other locations are:
and waiting there without terminating after execution.
Can any one tell the reason for this and any way to solve this.
It will be great if any one help me in this regards.