Solved

monitoring on virtual terminal: HOW?

Posted on 2002-07-29
6
180 Views
Last Modified: 2013-12-15
I want to have other programs than getty/login running on my virtual terminal. For example, I want to have pppstatus running on vt8, top on vt9, or a "tail -f /var/log/messages" on vt10. But I don't want to log in for that...

Furthermore, I want those to be restartet if they are accidently closed.

I remember that with an old Suse 5.0 one could monitor the installation process on vt3 or so. And during install of my Debian/GNU Linux I too have a monitor on vtXYZ.

So, somehow it must be possible to have something else than getty on a vt...

I've been searching Howtos, LDP, man-pages, info-pages, FAQs for several hours now and I didn't come any closer to a solution. Please help me!

Can I somehow tell the program on which vt it should run (just like getty is told)? Is there some tool that could run the program on a specified vt? Do you actually understand what my problem is?



0
Comment
Question by:housetier
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7187482
never tried it, but should work as follows
add to your /etc/inittab:

10:3:respawn:tail -f /var/log/messages>/dev/ttyv10
0
 

Author Comment

by:housetier
ID: 7193252
it started tail but not on a (v)tty. Are you sure about /dev/ttyv10?

---Lasse
0
 
LVL 20

Accepted Solution

by:
Gns earned 50 total points
ID: 7193378
Use "open" and possibly a combination of scripts/init.

man open

You'll need to specify the -w option, otherwise open will return immediately (not good with init;-).
eg: open -c 10 -w -s /usr/bin/top
would start top in vt10, wait for completion of command, and switch to vt 10 (-s option).
I think you can figure out the inittab entry from ahoffmanns comment;-).

Please note that several textbased "monitors" may present a grave security risk, if run this way, since they let you affect the system (top lets anyone sitting at the keyboard renice or kill arbitrary processes etc). If you run from init, you are root.

-- Glenn
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 20

Expert Comment

by:Gns
ID: 7193383
(Answering for ahoffmann, many excuses:)
No it should (in all probability) be /dev/tty10.

-- Glenn
0
 

Author Comment

by:housetier
ID: 7193463
Thats what I was looking for! Thanks a lot :)

Maybe I should start a HOWTO for this...

---Lasse
0
 
LVL 20

Expert Comment

by:Gns
ID: 7193483
Gör det... erhm do that:-)

-- Glenn
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question