LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 12-19-2001, 09:37 AM   #1
CPUNeck
LQ Newbie
 
Registered: Jun 2001
Location: Atlanta, GA
Distribution: Mandrake 10.2
Posts: 9

Rep: Reputation: 0
Question Device Redirection


I finally figured a way to redirect output from the ttyS0 to a file. (I have a phone system that logs calls, they want 1.8k $$$ for the stupid software..) Is there a way I can either view the file as it is being populated or redirect to more than one place?

Ultimately I want this raw data to be dumped in to a database so I can manipulate it. The real challange will be doing all this while the information is constantly updated. TIO
 
Old 12-20-2001, 02:27 PM   #2
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Viewing a file as its getting longer is no biggy:

tail -f /var/log/answeringmachine (or whatever dir)

You can kill out of the running tail with ctrl+c. Its the most common way to read /var/log/messages while you're doing something wacko with the system or the kernel. Should work for this too.

I take it you just want to be able to watch as the file populates, possibly for debugging? nothing else?

-Cheers

Finegan
 
  


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
Port 80 redirection omlex Linux - Security 1 02-20-2005 04:22 PM
Redirection in Apache gonzo22 Linux - Networking 5 02-12-2005 10:54 AM
X Client Redirection LostAgain Linux - General 4 11-27-2004 09:31 PM
Help:iptables redirection swmok Linux - Networking 2 11-24-2004 08:47 AM
redirection in C pantera Programming 2 08-11-2004 02:06 PM


All times are GMT -5. The time now is 11:04 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration