LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-21-2011, 10:50 PM   #1
CJ Chitwood
Member
 
Registered: Dec 2006
Location: Northern Half of Florida
Distribution: PCLinuxOS on one home machine, Debian Buster on the other. I forget what's on the laptops.
Posts: 146

Rep: Reputation: 28
Sending system logs to serial port


Hello all,

I'm having trouble finding specific answers. I want my system logs (e.g. the messages that run during a verbose startup) to be output to the normal place (for instance, tty1 or wherever) as well as to /dev/ttyS0 or /dev/ttyS1. I have found how to enable a console on ttyS0, and have done so to successfully log in and run commands, etc., but I have been unable to find how to pipe the logs to the serial port for to watch them during startup, shutdown, etc.

End result, I want to be able to connect another computer/terminal to my com port, and watch logs on it while doing normal activities on the Linux host. e.g., if the system is so unresponsive as to appear locked up, and no keystrokes on my keyboard work (including CTL-ALT-F1 or CTL-ALT-DEL), I want to see on the serial-connected device if the system really is that hosed before I pull the power to reset it.

Thanks in advance for any advice you can give...
 
Old 08-21-2011, 11:12 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Here you go.
 
1 members found this post helpful.
Old 08-22-2011, 06:35 PM   #3
CJ Chitwood
Member
 
Registered: Dec 2006
Location: Northern Half of Florida
Distribution: PCLinuxOS on one home machine, Debian Buster on the other. I forget what's on the laptops.
Posts: 146

Original Poster
Rep: Reputation: 28
Thanks! I have been having trouble getting answers out of Google. I don't know if I've been too specific with my terms or if I just don't know the words that describe what I'm actually trying to do. It doesn't help that so many hits for "console" actually mean "terminal".

I've got some readin' up to do! Thanks again!
 
  


Reply



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
sending control-Z to serial port golden_boy615 Linux - Embedded & Single-board computer 1 01-21-2009 04:42 PM
serial port programming and sending ctrl+ Z to it golden_boy615 Programming 2 01-19-2009 08:56 AM
sending control-Z to serial port golden_boy615 Linux - Newbie 1 01-15-2009 05:49 PM
Sending files over serial port. Fadoksi Linux - General 2 08-01-2007 08:36 AM
Sending and receiving data to through Serial Port kalyan.penujeevi Programming 1 08-07-2006 07:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:05 PM.

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