Alternative network messaging?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Alternative network messaging?
# 1  
Old 10-19-2012
Alternative network messaging?

Hello people,
which options do I have to send messages over a network from one station to another without using standard network messaging commands like write, talk und message? Thanks.
# 2  
Old 10-19-2012
I suppose it depends on what you call sending a message. email works for most of us. You can ssh between hosts, but to message people youu need to find specific tty names as well. If you want them to reply, you need some sort of artifact there for them to send through. I once tried something with mmap() atached NFS files, but changes were not picked up unless I did an ls on the end remote from the write. Maybe if everyone tailed a file and wrote to that file under an id header line in tight blocks, you would have a logged chat session. I have done that. If you have no NFS, you can "ssh ... tail -f chatfile &" to see the dialog on one xterm and do an ssh to write blocks from another. You write blocks by composing them in an env variable and then echoing the variable as one atomic write. Oh, I said that word, but the command is echo not write.
This User Gave Thanks to DGPickett For This Post:
# 3  
Old 10-19-2012
Thanks. Well, I thought of a primitive SMS-like messaging function that allows to send messages either to one user or to a group of users. I thought I could use nc for that task, but I don't know if it's a good option.

What would would you recommend to simulate a network? Is it better to use multiple IP aliases on one physical host or to use multiple VMs?

Last edited by 123_abc; 10-20-2012 at 09:48 AM..
# 4  
Old 10-19-2012
If you want it to be utterly open, you might write something using UDP on a fixed high port and broadcast messages. It works to run at least one big name stock exchange. I suppose you might want some authentication so you know who you are talking to, and that means a server daemon or some peer equivalent.
This User Gave Thanks to DGPickett For This Post:
# 5  
Old 10-20-2012
I think I am going to simulate a network with VirtualBox, because here I have arbitrary amount of independent OSs.

The shell script should work like this:
1. The user logs in. Depending on his privileges, he can send messages to one user or to a group of users.
2. The receiver gets the message. If he is not online, the sender gets an error message.
The whole script shouldn't be based on P2P.

I am still unsure on which core commands this script should be build.
# 6  
Old 10-22-2012
Some sort of JAVA or PERL app would be very portable and consistent across O/S.
This User Gave Thanks to DGPickett For This Post:
# 7  
Old 10-23-2012
I'm not allowed to use any other language than Linux Shell Script. In my opinion, rcp or nc are the only commands that could be used for network messaging.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

The DT messaging system could not be started.

Good Morning, Users can no longer log into SunBlade 2500 Solaris 9 system (though root still can). Here's what I'm getting and what I've done. I'm most suspicious of the full drive since that pops up twice and I did see one looks full. What's a good way to reduce what's on it?- or.. what else... (2 Replies)
Discussion started by: Stellaman1977
2 Replies

2. UNIX for Advanced & Expert Users

The DT messaging system could not be started

Hello All, I am getting " The DT messaging system could not be started" message when wants to login as root on a box running on tru64 5.1A. /etc/hosts is ok. when i see in .dt/errorlog it shows message server could not be started. Thanks for help. Awadhesh (2 Replies)
Discussion started by: Awadhesh
2 Replies

3. Programming

problems while using messaging queues....

hi I am using posix functions such as mq_open, mq_close and including the mqueue.h. but its giving a linking error,"undefined reference to mq_open and mq_close". it it that we have to link some library or so while compiling... plzzz help Thanxs Mohit (0 Replies)
Discussion started by: mohit3884
0 Replies

4. UNIX and Linux Applications

how do i enable messaging

hi guyz i work as a system administrator for some organization(am a newbie). one of the solaris machines is loaded with the messenger server...all configured by a former administrator. my task was to create user accounts for the mail and calendar services and as i checked its not working .....i... (0 Replies)
Discussion started by: henokia4j
0 Replies

5. IP Networking

DT messaging could not be started

this id the message i get with a suggestions to check those files: /etc/src.sh /etc/hosts /usr/adm/inetd.sec i have little knowledge of hoe to edit those files/ i went to the etc library and didn't found src.sh file. what should i do? also didn't find the inetd.sec file In the host... (3 Replies)
Discussion started by: amirp
3 Replies

6. Programming

Instant Messaging App Help

I was hoping someone could assist me on a text-based instant messaging client(using UDP) I am working on. I have the network communication basics already in place but, specifically, needed some further help on the "messaging other users" and "getting a user list" functions. The server code that... (0 Replies)
Discussion started by: AusTex
0 Replies
Login or Register to Ask a Question