LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-16-2004, 11:31 AM   #1
sh0
LQ Newbie
 
Registered: Nov 2003
Location: Germany
Distribution: Slackware 7.0 - 10.0
Posts: 26

Rep: Reputation: 15
is there a way to switch to a tty with a command?


There is a lil' question i got is it possible to switch with a command to a specified tty ?

I want to switch on my server to tty12 on boot up to view the syslog.
There is no keyboard connected only a monitor to view all the bad logs 8)
 
Old 01-16-2004, 01:15 PM   #2
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
Not sure but here is a W.A.G.

What if mingetty was run only on tty 12?

Found in inittab:

# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

Maybe change to:

# Run gettys in standard runlevels
12:2345:respawn:/sbin/mingetty tty12


This is completely untested!!
 
Old 10-26-2006, 03:13 AM   #3
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 38
/wipes the dust from the keyboard. For the next one looking for this:

Quote:
switch with a command to a specified tty?
use chvt
Code:
change foreground virtual terminal
So to switch to terminal 12:
Code:
chvt 12
 
1 members found this post helpful.
Old 12-17-2009, 09:26 PM   #4
lukyluky
LQ Newbie
 
Registered: Dec 2009
Posts: 1

Rep: Reputation: 0
thanks for wiping the dust from the keyboard :)

Quote:
Originally Posted by muha View Post
/wipes the dust from the keyboard. For the next one looking for this:


use chvt
Code:
change foreground virtual terminal
So to switch to terminal 12:
Code:
chvt 12
works like a charm.
 
  


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
executing a command from tty sending it to an x display poiuytrewq Linux - Newbie 1 04-20-2005 11:22 PM
command to get tty number D. Marowa Linux - General 5 06-06-2004 08:47 PM
Multiple tty in command line tearinox Linux - General 2 02-12-2004 11:28 AM
Bash: tty: command not found p0rt Linux - General 5 10-02-2003 12:38 PM
Need to switch tty or send system msgs to tty2 adrianphicks Linux - General 1 08-01-2003 08:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:22 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