07-17-2009
Quote:
Originally Posted by
garethr
How about set up a "getty" process to listen on it and present a login prompt?
Put something like this in /etc/inittab, then "telinit q":
tty1:23:respawn:/usr/sbin/getty /dev/tty1
tty2:23:respawn:/usr/sbin/getty /dev/tty2
---------- Post updated at 10:49 ---------- Previous update was at 10:48 ----------
Then, of course, use a serial console to see whether you can see a login prompt.
If i put the lines in inittab file what do i have to do now shall i connect serial cable from AIX to the PC and configure hyperterminal?
---------- Post updated at 12:02 PM ---------- Previous update was at 11:24 AM ----------
I tried to configure modem according to the following document but the following error occured
The output of slattach connand is as follows.
what is the solution
# slattach tty1 38400 '"" ATZ OK ""'
strload: cannot load /usr/lib/drivers/slip: Cannot run a file that does not have a valid format.
slattach: 0821-300 ifconfig command must be run for this tty before slattach can be run.
# slattach tty1
strload: cannot load /usr/lib/drivers/slip: Cannot run a file that does not have a valid format.
slattach: 0821-300 ifconfig command must be run for this tty before slattach can be run.
10 More Discussions You Might Find Interesting
1. Programming
I'm writing a journal_write() function and I want it to:
- be a possible drop in replacement for write()
- write entries to the journal ;-) Could be a regular file (journal.txt), a serial printer or a // printer.
- handle printer status if needed.
fstat() tells weather or not we're dealing with... (2 Replies)
Discussion started by: starless
2 Replies
2. UNIX for Advanced & Expert Users
I am using system running on red hat linux 4.
I had connected health measuring machine to the serial port and configured it
stty -F /dev/ttyS0 9600 -parenb cs8 -cstopb
this machine requires a command to be passed to it for giving output. I am unable to pass command hexa format(0x68) to the... (4 Replies)
Discussion started by: netsavant
4 Replies
3. UNIX for Dummies Questions & Answers
I need make serial data from virtual serial ports available on a TCP/IP network.
For communications with hardware COM ports to send and receive serial data over a local network or the Internet.
Example:
POSIX machine (/dev/ttyS0) <--- TCP/IP ---> Windows machine COM1
Please help! I try use... (0 Replies)
Discussion started by: steel98
0 Replies
4. AIX
Hi,
How can i configure my modem in AIX thru serial port (sa0-->tty0)
I have two port serial card configured as sa0
I created tty1 which port is tty0 and which port is tty1 how can i know?? (1 Reply)
Discussion started by: pchangba
1 Replies
5. UNIX for Dummies Questions & Answers
A neighbour's Ubuntu 10.04 machine has five serial ports, one on the motherboard and four on a PCI card. However, only four cards are showing:
# dmesg | grep tty
console enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
... (2 Replies)
Discussion started by: dotancohen
2 Replies
6. Shell Programming and Scripting
Hi,
I have a external board connected to my serial port. I need to execute "shutdown -r now" command when system boot up. When system boots up it requires a username ans password. Then I need to run my command. I can use rc script but that is rebooting system before it asks for username and... (0 Replies)
Discussion started by: charlie.arya
0 Replies
7. 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
8. Shell Programming and Scripting
Hello,
I am working one one script where I am using the below code which is using to connect with MKS client when I run my script manually it works effiecently i.e. it connects with MKS client but when I run it from CRON it doesn't connect.
1)Can some one tell when it is running from cron... (1 Reply)
Discussion started by: anuragpgtgerman
1 Replies
9. 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
10. Shell Programming and Scripting
I have a london-electronics LED sign I picked up on eBay which I would like to display custom messages on programmatically. It is working ok.
Opening it up, it has an ethernet to serial connection currently plugged in and a serial connection currently unplugged internally (same connectors).... (9 Replies)
Discussion started by: windswept321
9 Replies
LEARN ABOUT DEBIAN
rungetty
RUNGETTY(8) Linux Programmer's Manual RUNGETTY(8)
NAME
rungetty - a minimal console getty that can run any process
SYNOPSIS
rungetty [--noclear] [--long-hostname] [-u username] [-g group] [-w path] [-n priority] [--prompt [=string]] [-d n] [--autologin username]
tty [--] [command] [arguments]
DESCRIPTION
rungetty is a getty for use on virtual consoles which has the ability to run any program, not just login(1). Like mingetty(8), on which
rungetty is based, rungetty isn't suitable for serial use. Both I and the author of mingetty(8) recommend mgetty(8) for that. It is useful,
though, for keeping programs such as, say, telnet(1), running at all times. When running a program other than login, it is executed as the
user and group nobody, or the user specified by username and group specified by group.
OPTIONS
--noclear
Do not clear the screen before prompting for the login name (the screen is normally cleared).
--long-hostname
By default the hostname is only printed until the first dot. With this option enabled, the full text from gethostname() is shown.
-u username
By default, rungetty runs programs as nobody. With this option, it runs as the user username.
-g group
By default, rungetty runs as the group nobody. This option allows you to tell rungetty to run programs as the group group.
--prompt [=string]
This option causes rungetty to wait until user input (usually an 'Enter') before executing the program. If string is specified, it
will be displayed. Otherwise, a default prompt will be shown.
-n n 'nice' value of specified program.
-w path
Working directory of specified program.
-d n Specifying -d will make rungetty wait n seconds before running the specified program.
--autologin username
Log the specified user onto the console (normally /dev/tty1) when the system is first booted without prompting for a username or
password.
When the autologin option is supplied, rungetty will check that the controlling terminal is the console (normally /dev/tty1), that a
reasonable username has been supplied, and that this is the first autologin request since the system has booted. If all of these
conditions have been met, a request for an unauthenticated login is passed to the login program. Otherwise, a normal interactive
login is performed.
The login program may deny the request for an unauthenticated login. Typically this will happen when the user is root, has a UID of
0, or whenever a normal interactive login would be denied due to the access restrictions specified in the nologin, usertty, or
securetty files.
Only a single autologin request will be issued after a system boot. If the automated login request is denied, or if the user logs
out, rungetty will revert to performing normal interactive logins for all subsequent login requests.
-- Tells rungetty that there are no more options to parse, useful for passing arguments with a - in them to the external program.
ARGUMENTS
tty Name of the tty to run on.
command
Runs specified command. Searches for command in /bin, /usr/bin, /usr/ucb, /usr/local/bin if the complete pathname and filename are
not given.
[arguments]
Command line arguments to pass to command.
ISSUE ESCAPES
rungetty recognizes the following escapes sequences which might be embedded in the /etc/issue file:
d insert current day (localtime),
l insert line on which rungetty is running,
m inserts machine architecture (uname -m),
inserts machine's network node hostname (uname -n),
o inserts domain name,
inserts operating system release (uname -r),
insert current time (localtime),
s inserts operating system name,
u resp. U
the current number of users which are currently logged in. U inserts "n users", where as u only inserts "n".
v inserts operating system version (uname -v).
EXAMPLE
In /etc/inittab, these lines:
r1:12345:respawn:/sbin/rungetty tty1
r2:2345:respawn:/sbin/rungetty tty2 telnet mail.foo.com
r3:2345:respawn:/sbin/rungetty tty3 -u support top
r4:2345:respawn:/sbin/rungetty tty4 -n 20 -w /etc rc5des
Would run a local login on /dev/tty1,a telnet(1) session to mail.foo.com on /dev/tty2,and top(5)on /dev/tty3. Note that telnet(1) is run
as user nobody, while top(5) is run as user support, and start the program rc5des(5) at the lowest priority level with a current directory
of /etc.
FILES
/etc/issue, /var/run/utmp, /var/log/autologin.
BUG REPORTS
Please send all bug reports to jake@nodomainname.net.
BUGS
There are no known bugs.
SEE ALSO
mingetty(8), mgetty(8).
AUTHOR
Copyright (C) 1999 Jakob Kaivo <jake@nodomainname.net>.
Jakob 'sparky' Kaivo 04 February 1999 RUNGETTY(8)