Find the answer to your Linux question:
Results 1 to 8 of 8
Like Tree3Likes
  • 1 Post By Roxoff
  • 1 Post By Irithori
  • 1 Post By Cancerous
Hello people, I would like to make a simple messaging programme that allows to send messages over the network from one computer to another. It should have functionalities like sending ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2012
    Posts
    29

    Programming a shell script messaging programme


    Hello people,
    I would like to make a simple messaging programme that allows to send messages over the network from one computer to another. It should have functionalities like sending messages to certain groups and single users and it would also be nice to save the messages locally in some file. Is that possible?

    Is there anywhere a good example to get started? Thanks.

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,865
    You may want to dig out the source code for the 'write' terminal command which does most of what you want already.
    pinhead likes this.
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Just Joined!
    Join Date
    Oct 2012
    Posts
    29
    Many thanks! That's a good hint to get started

  4. #4
    Just Joined!
    Join Date
    Oct 2012
    Posts
    29
    Is this task also possible without "write"-, "talk"- or "message"-command?

  5. #5
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,380
    Yes, pidgin has a console brother called finch.
    Install finch and you can use about any IM protocol out there.

    However, for learning purposes the write sourcode is probably easier to understand.
    pinhead likes this.
    You must always face the curtain with a bow.

  6. #6
    Just Joined!
    Join Date
    Oct 2012
    Posts
    29
    I want to implement a shell script solution (without write, talk and message) and not use a programme that already exists.

  7. #7
    Just Joined!
    Join Date
    May 2012
    Posts
    43
    Quote Originally Posted by pinhead View Post
    I want to implement a shell script solution (without write, talk and message) and not use a programme that already exists.
    Program*

    A programme is like a listing of events or a timetable.
    pinhead likes this.

  8. #8
    Just Joined!
    Join Date
    Oct 2012
    Posts
    29
    Thanks. Does anyone know which commands aside from write, talk and message could be used to build a messaging program? Could netcat be an option?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •