10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In bash, you can do something like this:
#!/bin/bash
echo -n "What is your name? " > /dev/tty
read thename < /dev/tty
How can I do the same in python?
I have a python script that has the following content:
#!/usr/bin/python2.7
import getpass
import sys
import telnetlib
import... (2 Replies)
Discussion started by: SkySmart
2 Replies
2. UNIX for Dummies Questions & Answers
Please explain me the difference between /dev and devices..
Googled info is -
/dev - where logical device names stores here
devices - physical device info stores here...
Could any one explain me.. the real difference and major one (3 Replies)
Discussion started by: VijaySolaris
3 Replies
3. UNIX for Dummies Questions & Answers
HI Guru's
Can any one explain me the difference between a system console and a ILOM (SC).
Thanks in Advance.
RK :) (4 Replies)
Discussion started by: rama krishna
4 Replies
4. UNIX for Dummies Questions & Answers
I see these terms used all the time with hardly any distinction between the two.
Any clarification would be appreciated!:) I could only get emacs to open in console so I was also wondering what are the common applications to use in console.:wall: (7 Replies)
Discussion started by: theKbStockpiler
7 Replies
5. UNIX for Dummies Questions & Answers
Hi ,
I have searched wiki for pseudo tty devices but it was very complex for me to understand.
Can any one help me understanding concept behind pseudo-tty in layman language?
According to security manual of our org /etc/securetty files shouldn't have any pseudo tty devices.
i understand
ttyX... (5 Replies)
Discussion started by: pinga123
5 Replies
6. Solaris
Is there a utility built into Solaris that will allow me to see console messages from a tty?
I've done a search and see that this is possible through software like ILOM, but I'm looking for a method to do this with built in utilities.
For example, on AIX, I can use swcons `tty` (6 Replies)
Discussion started by: makodarear
6 Replies
7. UNIX for Dummies Questions & Answers
Sometimes when I open up the terminal (like just now) it says
Last login: Wed Jun 17 07:29:25 on console
sometimes it says ttys (like when I exit and open a new window/tab). What's the difference? and is something fishy going on? (6 Replies)
Discussion started by: Straitsfan
6 Replies
8. UNIX for Advanced & Expert Users
Hi people,
i tried to search in the forum... but didnt found the answer...
Sometimes i need to send a console message to all users in all tty, like reboot or shutdown does...
But i cant find how to do that.
Someone know?
Thanks a lot (2 Replies)
Discussion started by: gfca
2 Replies
9. UNIX for Dummies Questions & Answers
I use configure cisco devices daily using hyper terminal in windows via the serial port. Is there an alternative solution in unix that I can connect to a cisco console port via serial port? What application do I need?? (1 Reply)
Discussion started by: dgroove3
1 Replies
10. Programming
Dear Export,
I want to begin an serial-communication application codes associated with TTY devices. But I don't know what key settings should be concerned after opening a TTY device file under UNIX plarform(SunOS 5.7)?
Could you give me some adivce? Thanks! (8 Replies)
Discussion started by: WayneYang
8 Replies
console.handlers(5) System Administrator's Manual console.handlers(5)
NAME
console.handlers - file specifying handlers of console lock and unlock events
DESCRIPTION
/etc/security/console.handlers determines which programs will be run when an user obtains the console lock at login time, and when the user
loses it on log out. It is read by the pam_console module.
The format is:
handler-filename lock|unlock [flag ...]
Where handler-filename is a name of the executable to be run, lock or unlock specifies on which event it should be run, and flags specify
how should pam_console call it.
Additionally there should be a line which specifies glob patterns of console devices.
The format of this line is: console-name consoledevs regex [regex ...]
Where console-name is a name of the console class - currently ignored - and regexes are regular expression patterns which specify the name
of the tty device. Only the first such line is consulted.
FLAGS
logfail
The pam_console module should log error to the system log if the return value of the handler is not zero or if the handler can not
be executed.
wait The pam_console should wait for the handler to exit before continuing.
setuid The handler should be executed with uid/gid of the user which obtained the console lock.
tty The handler will get a tty name as obtained from PAM as a parameter.
user The handler will get an user name as obtained from PAM as a parameter.
Anything else will be added directly as a parameter to the handler executable.
SEE ALSO
pam_console(8)
AUTHOR
Tomas Mraz <tmraz@redhat.com>
Red Hat 2005/3/18 console.handlers(5)