LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-17-2008, 05:43 PM   #1
tweakmyknob
LQ Newbie
 
Registered: Nov 2004
Posts: 7

Rep: Reputation: 0
Display logs instead of TTY?


I've seen this before, and it's been very handy in the past, however I've not yet set it up.


I'm installing a server, with no GUI and I'd like to have a couple of log files display automatically instead of a login prompt for the first 4 TTY's.


Any help with this would be greatly appreciated.

Thanks,

-Tweak



OS: Ubuntu Server on x86
 
Old 01-17-2008, 06:34 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

Have a look in /etc/inittab

Replace the mingetty commands lines you want with whatever you need, e.g.
4:2345:respawn:/usr/bin/tail -f /var/log/secure > /dev/tty4

Dave
 
Old 01-17-2008, 06:36 PM   #3
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 64
I don't know where I found this just pulled it out of my notes but this may make some sense. I just paste what I have in that sticky note.
Code:
# Set tty10 to full screen.
stty -F /dev/tty10 rows 48 columns 128
# Start logging of firewall on tty10.
echo "Firewall logging show on tty10."
tail --follow /var/log/firewall | arno-fwfilter >/dev/tty10 &
# Set tty9 to full screen.
stty -F /dev/tty9 rows 48 columns 128
# Start logging of /var/log/messages on tty9.
echo "/var/log/messages shown on tty9."
tail --follow /var/log/messages >/dev/tty9 &
# Set tty11 to full screen.
stty -F /dev/tty11 rows 48 columns 128
# Start tcpdump on tty11
echo "tcpdump shown on tty11."
tcpdump -vv >/dev/tty11 &


 Question  How to open a program and send it to another shell
I know there's a way to do what I'm trying to do, but I'm just too noobie to do it.

Here's the thing: I want open multiple simple text files with less from one of the terminals that you get when you do <ctrl>+<alt>+<F?>(I don't how do you call these kind of terminals), but each file must be open in one different terminal, so when I hit ctrl+alt+F1 I see the first file, then if I hit <ctrl>+<alt>+<F2> the second an so on...

I will only have to open a maximum of 5 files so there'll be plenty terminals to do that.
Brian
 
  


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
Display welcome message when user logs in thunder44 Linux - General 3 10-16-2007 07:33 AM
tty display corrupt after kill X, slack 10.1 nadroj Linux - Hardware 6 09-08-2005 11:36 PM
executing a command from tty sending it to an x display poiuytrewq Linux - Newbie 1 04-20-2005 10:22 PM
Coloring real-time logs on tty d1s4st3r Linux - Newbie 4 09-03-2004 05:40 PM
How do I display tty stuff in X jlturbos Linux - General 7 02-08-2004 08:53 PM

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

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