02-25-2019
Tty port
Is there an easy to see which /dev/tty a printer is on on SCO Unix 3.2.4.2?
9 More Discussions You Might Find Interesting
1. IP Networking
Hi Linux/Unix Guru,
I am setting Linux Hopping Station to another different servers.
My current config to connect to another servers is using different port to connect.
e.g
ssh -D 1080 -p 22 username@server1.com
ssh -D 1081 -p 22 username@server2.com
Now what I would like to have... (3 Replies)
Discussion started by: regmaster
3 Replies
2. Solaris
Hi Everyone,
In my environment, I have few T5220. On the iLOM Management Card, I have both Network and Serial port are cabled, I don't have any issues while I try to connect using Network Management port, but when I try to connect the serial port for the same server which is actually connected... (3 Replies)
Discussion started by: bobby320
3 Replies
3. IP Networking
Hi,
I am trying to set up a dev environment and I have Ubuntu server (10.16.1.92) and a CentOS VM (10.16.3.235) on this. On the CentOS I have a program running on port 5433. Now my problem is that I am unable to telnet this port from another Windows server whereas I can telnet port 22 from... (5 Replies)
Discussion started by: rishav
5 Replies
4. IP Networking
i want to kill a tcp connection by killing its pid
with netstat -an i got the tcp ip connection on port 5914
but when i type ps -a or ps-e there is not such process running on port 5914
is it possible that because i do not log on with proper user account i can not see that process running? (30 Replies)
Discussion started by: alinamadchian
30 Replies
5. Solaris
Hello,
I have an unloaded T5140 machine and want to access the ILOM for the first time and subsequently the network port after that., and then load Solaris 10 the final January 2011 build.
The first part is what confuses me -the cabling.
I am coming from a Windows machine (w/appropriate... (5 Replies)
Discussion started by: joboy
5 Replies
6. Solaris
please find the below o/p for your reference
bash-3.00# fcinfo hba-port
HBA Port WWN: 21000024ff295a34
OS Device Name: /dev/cfg/c2
Manufacturer: QLogic Corp.
Model: 375-3356-02
Firmware Version: 05.03.02
FCode/BIOS Version: BIOS: 2.02; fcode: 2.01;... (3 Replies)
Discussion started by: sb200
3 Replies
7. Shell Programming and Scripting
Hi Expert,
Anybody can figure it out on how to generate new port base on my last port let say my last port var1=124 and increment for new port 125,126 but this new two ports need to look at first if this port is not in used by any service, if the port is in used add 1 to new port and if in used... (6 Replies)
Discussion started by: lxdorney
6 Replies
8. 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
9. UNIX for Beginners Questions & Answers
hi,
i would like to create a bash script that check which port in my Linux server are closed (not in use) from a specific range, port range (3000-3010).
the print output need to be only 1 port, and it will be nice if the output will be saved as a variable or in same file.
my code is:
... (2 Replies)
Discussion started by: yossi
2 Replies
LEARN ABOUT SUSE
setconsole
SHOWCONSOLE(8) The SuSE boot concept SHOWCONSOLE(8)
NAME
Showconsole - determines the underlying tty of stdin
Setconsole - sets the underlying tty of /dev/console
SYNOPSIS
showconsole [-n]
setconsole /dev/tty<xy> < /dev/console
DESCRIPTION
showconsole determines the underlying character device of the current stdin. This can be used on /dev/console as current character device
to get the real character device back.
setconsole sets the underlying tty of the system console /dev/console. This requires that the standard input is identical with /dev/con-
sole and exactly one argument, a valid character device is given.
OPTIONS
-n Return the major and minor device numbers instead of the device file name. This can be used to asked the kernel for the major and
minor device numbers of a not existing device file in /dev.
BUGS
showconsole needs a mounted /proc file system and tries to set the controlling tty to stdin if no controlling tty is found. After reading
/proc the status of the controlling tty is restored to avoid problems with getty processes.
FILES
/proc/<pid of showconsole>/stat
the stat file of the showconsole process.
/dev/console
the system console.
SEE ALSO
blogd(8), console(4), tty(4), proc(5).
COPYRIGHT
2000 Werner Fink, 2000 SuSE GmbH Nuernberg, Germany.
AUTHOR
Werner Fink <werner@suse.de>
3rd Berkeley Distribution Nov 10, 2000 SHOWCONSOLE(8)