07-07-2006
good example for pty usage ?
i am looking for a good example to explain *why* someone should use pty's.
9 More Discussions You Might Find Interesting
1. AIX
Hi all,
today I could not telnet in AIX 5.2 cause I received the error
"telnetd: All network ports in use".
To allow users to telnet again I increased the number of ptys from default 256 to the new number 512.
To avoid the same problem in the future and for a better understanding, I need... (2 Replies)
Discussion started by: l-roner
2 Replies
2. Linux
Hi,
I am getting this error "Server refused to allocate pty"
and Not able to login and I have to restart the server, this works fine for one day again 2 nd day when I am trying to login I am getting this error "Server refused to allocate pty", Can any body suggest me how to resolve this... (1 Reply)
Discussion started by: manoj.solaris
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
According to my understanding tty files that are available in /dev directory are terminals that are given to different users.
please help me understand what are /pty files, like are they drivers to the devices..
also is the default tty terminal given to a user.. (2 Replies)
Discussion started by: saharookiedba
2 Replies
4. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
5. UNIX for Advanced & Expert Users
I know there is a thread on the subject but is not related to solaris so I am posting this question for help
I have a solaris 8 machine. I can log in through the console but when trying to log in through putty/telnet after accepting username and password it gives the follwing error
"Server... (2 Replies)
Discussion started by: Tirmazi
2 Replies
6. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
7. Programming
I've been experimenting with pseudo-terminals and found something I don't quite understand. Writing an EOF character to the master end doesn't work quite as I expect. Once I've written any other data, the master pty seems to treat a single ^D as a seperator, i.e. writing "abcabc" would let cat do... (1 Reply)
Discussion started by: Corona688
1 Replies
8. Solaris
Hello Admins,
Anybody faced this issue while logging through ssh on solaris:
I am getting this error now. I was able to logged in before. Now I am getting this error.
Any idea? (3 Replies)
Discussion started by: snchaudhari2
3 Replies
9. Shell Programming and Scripting
I'm trying to have an unattended remote PC log some data on home PC.
man sshd says I should be able to put a command in authorized_keys.
This is what I have on the remote machine. The key is a special key that isn't used elsewhere.
In my ~/.ssh/authorized_keys file on my desktop:... (12 Replies)
Discussion started by: KenJackson
12 Replies
ptsname(3C) ptsname(3C)
NAME
ptsname() - get the pathname of a slave pty (pseudo-terminal)
SYNOPSIS
Obsolescent Interfaces
Remarks
supports STREAMS pty (see ptm(7) and pts(7)), and non-STREAMS pty (see pty(7)) which have different device naming conventions. Notice that
the STREAMS pty, being an optional feature, is supported only when it is installed on the system.
is useful only on systems that follow the insf(1M) naming conventions for pty (STREAMS and non-STREAMS).
DESCRIPTION
The passed parameter, fildes, is a file descriptor of an opened master pty. generates the name of the slave pty corresponding to this mas-
ter pty. This means that their minor numbers will be identical.
Obsolescent Interfaces
gets the pathname of a slave pty (pseudo-terminal).
RETURN VALUE
Upon successful completion, returns a string containing the full path name of a slave pty. Otherwise, a NULL pointer is returned. The
return value is pointed to static data area which is overwritten with each call to so it should be copied if it is to be saved.
ERRORS
fails and returns a NULL pointer under the following conditions:
o File descriptor does not refer to an open master pty.
o Request falls outside pty name-space.
o Pty device naming conventions have not been followed.
o failed to find a match.
WARNINGS
is obsolescent interface supported only for compatibility with existing DCE applications. New multi-threaded applications should use
EXAMPLES
The following example shows how is typically used for non-STREAMS pty to obtain the pathname of the slave pty corresponding to a master pty
obtained through a pty clone open.
...
The following example shows how is typically used on obtaining the pathname of the STREAMS slave pty corresponding to a STREAMS master pty.
...
AUTHOR
and were developed by HP and OSF.
SEE ALSO
insf(1M), devnm(3), pty(7), grantpt(3C), unlockpt(3C), ptm(7), pts(7), ptem(7), ldterm(7).
ptsname(3C)