How do I capture responses from the chat command?


 
Thread Tools Search this Thread
Operating Systems Linux How do I capture responses from the chat command?
# 8  
Old 02-11-2011
I managed to get it all working by pulling the data from /var/log/messages.

Even though my version of chat is supposed to support REPORT I couldn't get it working properly and there's little if any working examples out there that I could find.

The intrinsic problem with serial comms is that the handshaking is never very reliable and using anything other then chat too often leads to a 'hanging' state in the script which is waiting for something to happen or didn't receive an ACK properly.

Thanks for everyone's suggestions and help.
# 9  
Old 02-14-2011
Quote:
Originally Posted by Bashingaway
The intrinsic problem with serial comms is that the handshaking is never very reliable and using anything other then chat too often leads to a 'hanging' state in the script which is waiting for something to happen or didn't receive an ACK properly.
In case you didn't read it too closely, my last couple versions of my serial comms script included -- and relied on -- TTY timeouts. If any serial read hung it would just die after a configurable number of tenths of a second.

Reading from /var/log/messages sounds like a very poor solution. For one thing, it could break from changing the configuration of your system logger and isn't likely to work on a system where it differs even slightly. For another thing this means your serial communications program probably needs root access to work!

Last edited by Corona688; 02-14-2011 at 12:00 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. What is on Your Mind?

Very Funny and Somewhat Amazing 2006 Chat Bot Chat

Working on the badging system, Just found this old thread for 2006 and started reading it. ROTFL ... what a great discussion between forum members and our chat bot Gollum "back in the good old days"... You must check this out if you want a laugh and big smile: ... (1 Reply)
Discussion started by: Neo
1 Replies

2. Web Development

Can you embed Skype or any other video chat/chat program into a webpage?

Hi, I am trying to embed Skype or any other video chat/chat program into a webpage. Has anyone had success doing this? or know how? Thanks Phil (2 Replies)
Discussion started by: phil_heath
2 Replies

3. UNIX for Dummies Questions & Answers

Doing a capture while another command is executing?

Basically what i'm trying to do is execute an update command and at the same time have the system do a TCPdump to file for that update traffic. So I would like to connect the two commands so that the tcpdump terminates automatically when the update finishes/fails/whatever. Right now I have... (0 Replies)
Discussion started by: MrEddy
0 Replies

4. UNIX for Dummies Questions & Answers

talk command to chat

Hi, Could you please advice on the following query: There are 2 users on a unix box: 1. aaaa 2. bbbb I open 2 putty sessions and login with the above 2 users. Then I type the following using the aaaa user to chat with bbbb. talk bbbb or talk bbbb@hostname Result: the screen goes... (4 Replies)
Discussion started by: miltonkeynesguy
4 Replies

5. Shell Programming and Scripting

talk command to chat

Hi, Could you please advice on the following query: There are 2 users on a unix box: 1. aaaa 2. bbbb I open 2 putty sessions and login with the above 2 users. Then I type the following using the aaaa user to chat with bbbb. talk bbbb or talk bbbb@hostname Result: the screen goes... (1 Reply)
Discussion started by: miltonkeynesguy
1 Replies
Login or Register to Ask a Question