Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sti(8) [netbsd man page]

STI(8)							    BSD System Manager's Manual 						    STI(8)

sti -- Simulate Terminal Input: send characters to a tty device SYNOPSIS
sti tty [string ...] DESCRIPTION
sti will send the provided string to the tty specified in the command line using ioctl(2) TIOCSTI, or send the standard input if no string is supplied. This ioctl(2) is limited to the superuser. The string is interpreted using unvis(3). SEE ALSO
ioctl(2), unvis(3) HISTORY
The sti first appeared at NetBSD 4.0. AUTHORS
The sti command was written by Christos Zoulas <>. BSD
November 10, 2005 BSD

Check Out this Related Man Page

SNP(4)                                                     BSD Kernel Interfaces Manual                                                     SNP(4)

snp -- tty snoop interface SYNOPSIS
#include <sys/snoop.h> int ioctl(fd, SNPSTTY, &dev); int ioctl(fd, SNPGTTY, &dev); int ioctl(fd, FIONREAD, &result); DESCRIPTION
/dev/snp is a snoop device which allows users to attach to any tty and watch activities on it. The kernel must be compiled with device snp, or the snp module must be loaded, for these devices to be available. To associate a given snp device with a tty to be observed, open the snp device and a tty device, and then issue the SNPSTTY ioctl on snp device. The argument passed to the ioctl(2) is the address of a variable of type int, holding the file descriptor of a tty device. To detach the snp device from a tty use a pointer to a value of -1. The SNPGTTY ioctl returns information about the current tty attached to the open snp device. The FIONREAD ioctl returns a positive value equal to the number of characters in a read buffer. Special values defined are: SNP_OFLOW device overflow occurred, device detached. SNP_TTYCLOSE tty not attached. SNP_DETACH snp device has been detached by user or tty device has been closed and detached. SEE ALSO
pty(4), sio(4), kldload(8), watch(8) HISTORY
The snp device first appeared in FreeBSD 2.1. In FreeBSD 8.0 the snp driver was rewritten to work with the replaced TTY subsystem. AUTHORS
The author of the current implementation is Ed Schouten <>. Previous versions of snp were based on code written by Ugen J.S. Antsilevich <>. BUGS
This version of snp does not return proper error codes when calling FIONREAD. It also does not allow SNPSTTY to detach itself from the TTY. BSD November 5, 2008 BSD
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk question

Hello Peeps, How can I use awk to strip the filename off the end please ? /dir/dir/dir/dir/filename ? Thanks, Dave (34 Replies)
Discussion started by: d__browne
34 Replies

2. Shell Programming and Scripting

Need Help for Adding Three new columns in existing file from fatching data from file

not required this time (36 Replies)
Discussion started by: Sandeep_Malik
36 Replies

3. Solaris

Help with Reviving a NETRA240 Pls?

Hi Everybody, Hope everybody is having fun with their Solaris installations and not pulling out too much of whatever hair they have left so far. :) Just for sport, I bought an old Netra 240 used by Northern Telecom Turkish subsidiary Netas here in Turkey. My hope is to turn this into an ugly... (33 Replies)
Discussion started by: ozsavran
33 Replies

4. What is on Your Mind?

PubNub Live Chat Beta Testing

Dear All, We are now beta testing our future "Live Chat" area using PubNub technology. This purpose of this testing is to test the core system, in general, and to see how many, if any, bugs crawl out of the woodwork. This "Live Chat" is not the... (48 Replies)
Discussion started by: Neo
48 Replies