LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-09-2010, 04:19 PM   #1
realized
LQ Newbie
 
Registered: Oct 2004
Posts: 23

Rep: Reputation: 15
Capture data on port?


I have a toshiba phone system that has a feature where it spits raw data and i can direct that data to a serial port on the toshiba phone system or to an IP/PORT

the data is just ascii data - tells me calls that are made/time/etc

I would like to setup an existing linux box to capture this data and store the data for me

then later i can build reports based on that data (and for me a report could be just a few cat's/greps/etc so basic stuff) - but i can figure this out later.

for now i would just like to GRAB the data on a port and dump it into a file (and recycle files every 24 hours)

are there any built in utilities that can help me do this?
 
Old 02-09-2010, 04:31 PM   #2
realized
LQ Newbie
 
Registered: Oct 2004
Posts: 23

Original Poster
Rep: Reputation: 15
I believe i can use nc/netcat to grab the data - am i on the right track for now?

however not sure about saving files/going to a new file after 24 hr..
 
Old 02-09-2010, 04:35 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,236

Rep: Reputation: 3654Reputation: 3654Reputation: 3654Reputation: 3654Reputation: 3654Reputation: 3654Reputation: 3654Reputation: 3654Reputation: 3654Reputation: 3654Reputation: 3654
A lot of terminal apps can save to files too.

Most time is a cron task. If you stop the app then restart it a new file ought to be created. Might have to edit it to count up.

Last edited by jefro; 02-09-2010 at 04:46 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
the get data from serial port function read() blocks when data not available DEF. Programming 3 11-17-2014 08:11 AM
Capture data in brackets nonnumquam Programming 11 07-11-2009 11:31 PM
Capture RAW Printer Data metalx1000 Linux - General 1 10-22-2007 09:13 AM
capture html form data blizunt7 Programming 12 06-19-2005 09:31 PM
Serial port capture printed data erald Linux - Software 0 04-12-2005 02:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration