Pseudo ttyp number


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Pseudo ttyp number
# 1  
Old 05-09-2006
Pseudo ttyp number

On my SCO server, I have an aplication that pick up the tty number and use it as terminal number, if there is someone loged in the console (tty01) and a PC connect and get ttyp1, the application report a duplicate terminal in the system, I want to change the pseudo ttyp number to start with 21 insted of 1.

Any help??
# 2  
Old 05-10-2006
Hint in respect to Linux

In Linux we use to do following
call
for(i=1 ; i < no_of_ttys ; i++) {
dev_node = makedev(136, i)
sprintf(devname, "/dev/pts/%s", i)
st_rdev[i] = mknod(devname, 0644, dev_node);
}
Why don't your application can use from ttyp21 and let other logins to use initial ttyp
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

pseudo device?

sometimes I see this message in dmesg: what does it mean? thanks. (5 Replies)
Discussion started by: orange47
5 Replies

2. UNIX for Dummies Questions & Answers

.bash_logout in Pseudo terminals

Hi all! I wrote a script that backups the bash history and it is called by .bash_logout. It work fine in /dev/ttyX terminals but the problem is it doesn't work when I logout from the pseudo-terminals i.e. /dev/pts/X (those created by gnome-terminal, konsole, etc). Does anybody have idea why it... (0 Replies)
Discussion started by: funyotros
0 Replies

3. UNIX for Dummies Questions & Answers

Pseudo Terminal

How can i view what my colleague is doing in the terminal pts/1 while i have logged into terminal pts/2 ?? Both have remotely logged in via ssh. (4 Replies)
Discussion started by: proactiveaditya
4 Replies

4. UNIX for Advanced & Expert Users

Need pseudo connectivity

Hi All, I have putty on my system (Vista). I need some server details to login via internet for my personnel practice. Can any body help me out. In case this not feasible, just let me know any other way to work with UNIX terminal on Windows Vista itself. Please help me since i am desparately... (3 Replies)
Discussion started by: vikas_kesarwani
3 Replies

5. Shell Programming and Scripting

pseudo code needs help coding

Thanks in advance!!! Can I get someone to write this small script or can you direct me to a web link, etc. to get it done? --------- Initiate this script every 15 - 20 secs or so through cron. Gather LAN users' $info(username, mac or ipaddr, PID) OBJECT: Tie each username to a mac or ipaddr,... (6 Replies)
Discussion started by: tuxhats
6 Replies

6. Solaris

what is /devices/pseudo/ ??

Hi all, what does this mean? if then <something> fi here is what i know.. it checks if the specified argument no($devid) in some function call is made into a block device and then proceeds with the execution of the loop. However am not understand what lofi@0:means? also is there... (3 Replies)
Discussion started by: wrapster
3 Replies

7. Solaris

pseudo: [ID 129642 kern.info] pseudo-device: vol0

Hi I have a system that gave me some messages on bootup that I was not used to seeing: pseudo: pseudo-device: vol0 genunix: vol0 is /pseudo/vol@0 these came with these: Feb 13 17:42:17 system1 eri: SUNW,eri0 : 100 Mbps full duplex link up Feb 13 17:42:21 system1sendmail: My unqualified... (0 Replies)
Discussion started by: mndavies
0 Replies

8. SCO

pseudo driver

explain differences between a device driver & a pseudo driver...???? thanks in advance (1 Reply)
Discussion started by: areef4u
1 Replies

9. Programming

Pseudo Terminals

I need to spawn a number of foreground process by reading a configuration file. Each process needs some form of I/O. Hence I need to run it on different terminals. How it can be done programatically , i.e. , my module needs to find which terminal is not in use, then open it, execute the process... (2 Replies)
Discussion started by: S.P.Prasad
2 Replies

10. UNIX for Dummies Questions & Answers

Pseudo TTy on Sco

I need to be able to set the terminal emulation type assigned to the ttyp. How do I go about doing so? Noob needing help. Thanks Rurki (1 Reply)
Discussion started by: Rurki
1 Replies
Login or Register to Ask a Question