saiz66 Posted September 22, 2004 Share Posted September 22, 2004 Hi. I want to know how to write a script in c shell where I could send messages to other users on there. Does tty stand for the terminal? Link to comment Share on other sites More sharing options...
0 Diffused Mind Posted September 22, 2004 Share Posted September 22, 2004 I believe 'talk' can do this. :unsure: Link to comment Share on other sites More sharing options...
0 saiz66 Posted September 23, 2004 Author Share Posted September 23, 2004 thanks i'll try it. Link to comment Share on other sites More sharing options...
0 saiz66 Posted September 23, 2004 Author Share Posted September 23, 2004 seems like talk is a two way communication.. at least that is what it seems to me... i need one which just sends a msg to other users on the terminal. Link to comment Share on other sites More sharing options...
0 Andareed Posted September 23, 2004 Share Posted September 23, 2004 I thought there was something that could just write to other consoles. Might be called 'write' :) Link to comment Share on other sites More sharing options...
0 saiz66 Posted September 23, 2004 Author Share Posted September 23, 2004 i also believe that it is a two way interactive thing... anybody else know? Link to comment Share on other sites More sharing options...
0 ghettobp Posted October 21, 2004 Share Posted October 21, 2004 tried 'wall'? im not 100% if u can specifically send it to users or specific shells and im not in linux now to test but u can try wall :happy: Link to comment Share on other sites More sharing options...
0 hdood Posted October 22, 2004 Share Posted October 22, 2004 It is called "write", and is not two-way interactive. "write <user> [tty]" will read text from stdin until EOF (ctrl-c), then display it on one of <user>'s ttys (terminals). This won't work if the user has messages disabled ("mesg n"), though. (And "wall" is pretty much the same, except it will send to all local terminals) Link to comment Share on other sites More sharing options...
Question
saiz66
Hi. I want to know how to write a script in c shell where I could send messages to other users on there. Does tty stand for the terminal?
Link to comment
Share on other sites
7 answers to this question
Recommended Posts