Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Help adding a tty in Digital UNIX 4.0D
@ 1999-02-11  5:00 Jim
  1999-02-12  5:00 ` Nikola Milutinovic
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jim @ 1999-02-11  5:00 UTC (permalink / raw)



I'm unfamiliar with Digital Unix.  I am however an AIX veteran, so as simple
as this question is I must proclaim my ignorance towards Digital UNIX is a
problem, but not UNIX in general..>Oh...that having been said,  is there
more to adding a TTY in digital unix than just adding a line in the inittab?
The tty is on serial port 1 on the system, making it tty00 ...do I just add
a line in the inittab similar to this?

tty00:234:off:/usr/etc/getty /dev/tty00 2400

This serial port will be used for connectivity to the UPS ...APCC doesn't
specify real well about what to put in the inittab.

Anyone done this before?  Any help is greatly appreciated.

--Jim
--------------------------------------------------------------------
Disclamer:  My opinions are my own and not necessarily
the same as my ass.

To email remove NOSPAM from email address.
c0leslawzNOSPAM@yahoo.com
--------------------------------------------------------------------






^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Help adding a tty in Digital UNIX 4.0D
  1999-02-11  5:00 Help adding a tty in Digital UNIX 4.0D Jim
  1999-02-12  5:00 ` Nikola Milutinovic
@ 1999-02-12  5:00 ` Kjell
  1999-02-13  5:00   ` Charles M Richmond
  1999-02-18  5:00   ` Ori Tzoran
  1999-02-13  5:00 ` Charles M Richmond
  1999-02-18  5:00 ` Ori Tzoran
  3 siblings, 2 replies; 8+ messages in thread
From: Kjell @ 1999-02-12  5:00 UTC (permalink / raw)



From "man MAKEDEV"

  /dev/MAKEDEV [ argument ] [ device-name? ...]
...
  PTY_#
      Creates groups of pseudoterminal device special files, as follows:

      PTY_1
          Creates pty0 to pty22.

      PTY_2
          Creates pty23 to pty45.

Kjell



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Help adding a tty in Digital UNIX 4.0D
  1999-02-11  5:00 Help adding a tty in Digital UNIX 4.0D Jim
@ 1999-02-12  5:00 ` Nikola Milutinovic
  1999-02-12  5:00 ` Kjell
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Nikola Milutinovic @ 1999-02-12  5:00 UTC (permalink / raw)


Jim wrote:
> 
> I'm unfamiliar with Digital Unix.  I am however an AIX veteran, so as simple
> as this question is I must proclaim my ignorance towards Digital UNIX is a
> problem, but not UNIX in general..>Oh...that having been said,  is there
> more to adding a TTY in digital unix than just adding a line in the inittab?
> The tty is on serial port 1 on the system, making it tty00 ...do I just add
> a line in the inittab similar to this?
> 
> tty00:234:off:/usr/etc/getty /dev/tty00 2400

Exactly what TTY are you trying to add?

If it is Pseudo TTY for telnet/rlogin, than you're looking in the wrong
direction, you should see

man MAKEDEV

in order to create /dev/pty__ files.

If, on the other hand, you're trynig to add a physical serial TTY, then
you should add a line in /etc/inittab.

> This serial port will be used for connectivity to the UPS ...APCC doesn't
> specify real well about what to put in the inittab.

Aha, APC. Well, if there is no such line, DON'T ADD IT AT ALL. Only if
there is a setting for a (lets say) modem connection, which you would
like to disable, but wouldn't like to delete (so that you don't have to
think it up some time again), then you cahnge "respawn" to "off".

Nix.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Help adding a tty in Digital UNIX 4.0D
  1999-02-12  5:00 ` Kjell
@ 1999-02-13  5:00   ` Charles M Richmond
  1999-02-13  5:00     ` Kjell
  1999-02-18  5:00   ` Ori Tzoran
  1 sibling, 1 reply; 8+ messages in thread
From: Charles M Richmond @ 1999-02-13  5:00 UTC (permalink / raw)


Kjell wrote:
> 
> From "man MAKEDEV"
> 
>   /dev/MAKEDEV [ argument ] [ device-name? ...]
> ...
>   PTY_#
>       Creates groups of pseudoterminal device special files, as follows:
> 
>       PTY_1
>           Creates pty0 to pty22.
> 
>       PTY_2
>           Creates pty23 to pty45.
> 
> Kjell

This does not have any relationship to the question that was asked!
Was it early morning (BC == before coffee) when you posted this?

-- 
***********************************************************************
*  Charles Richmond    Integrated International Systems Corporation   *
*  cmr@iisc.com        cmr@koibito.iisc.com  cmr@shore.net            *
*  UNIX Internals, I18N, L10N, X, Realtime Imaging, and  Custom S/W   *
*  One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431      *
*  (617) 723 7695    (617) 367 3151        FAX (617) 723 6861         *
***********************************************************************



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Help adding a tty in Digital UNIX 4.0D
  1999-02-11  5:00 Help adding a tty in Digital UNIX 4.0D Jim
  1999-02-12  5:00 ` Nikola Milutinovic
  1999-02-12  5:00 ` Kjell
@ 1999-02-13  5:00 ` Charles M Richmond
  1999-02-18  5:00 ` Ori Tzoran
  3 siblings, 0 replies; 8+ messages in thread
From: Charles M Richmond @ 1999-02-13  5:00 UTC (permalink / raw)


Jim wrote:
> 
> I'm unfamiliar with Digital Unix.  I am however an AIX veteran, so as simple
> as this question is I must proclaim my ignorance towards Digital UNIX is a
> problem, but not UNIX in general..>Oh...that having been said,  is there
> more to adding a TTY in digital unix than just adding a line in the inittab?
> The tty is on serial port 1 on the system, making it tty00 ...do I just add
> a line in the inittab similar to this?
> 
> tty00:234:off:/usr/etc/getty /dev/tty00 2400
> 
> This serial port will be used for connectivity to the UPS ...APCC doesn't
> specify real well about what to put in the inittab.

Assuming that the APCC does not actually require a login, you might
not even need an inittab entry. On the otherhand as long as the
specified (default) baud rate is correct then you can not do any
harm and if the APCC code is any good then it will set all of its
own parameters.

> 
> Anyone done this before?  Any help is greatly appreciated.
> 

We use the run_around_the_room_shutdown_now method of dealing with
APCs. Of course the fact that we have not had a power outage since
moving here in 1991 contributes to our sense of irresponsibility.
Heck we do have APCs and some of them are even in use!
-- 
***********************************************************************
*  Charles Richmond    Integrated International Systems Corporation   *
*  cmr@iisc.com        cmr@koibito.iisc.com  cmr@shore.net            *
*  UNIX Internals, I18N, L10N, X, Realtime Imaging, and  Custom S/W   *
*  One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431      *
*  (617) 723 7695    (617) 367 3151        FAX (617) 723 6861         *
***********************************************************************



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Help adding a tty in Digital UNIX 4.0D
  1999-02-13  5:00   ` Charles M Richmond
@ 1999-02-13  5:00     ` Kjell
  0 siblings, 0 replies; 8+ messages in thread
From: Kjell @ 1999-02-13  5:00 UTC (permalink / raw)


Charles M Richmond <cmr@iisc.com> writes:

> 
> This does not have any relationship to the question that was asked!

I'm sorry.

Kjell



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Help adding a tty in Digital UNIX 4.0D
  1999-02-11  5:00 Help adding a tty in Digital UNIX 4.0D Jim
                   ` (2 preceding siblings ...)
  1999-02-13  5:00 ` Charles M Richmond
@ 1999-02-18  5:00 ` Ori Tzoran
  3 siblings, 0 replies; 8+ messages in thread
From: Ori Tzoran @ 1999-02-18  5:00 UTC (permalink / raw)
  To: Jim

Jim wrote:

> .....
> This serial port will be used for connectivity to the UPS ...APCC doesn't
> specify real well about what to put in the inittab.

> Anyone done this before?  Any help is greatly appreciated.

sorry, i didn't do that before and, sorry again, i usually don't reply on questions i have no precise answer.
but looking at the stuff you've got in reply leaves room for desire.

let's try to be logical: your UPS probably is not going to login to the system, isn't it?
the inittab line is putting getty for a user to login, while UPS software usually sends a SIGPWR through a script that reads from the serial port.
i suggest you look at the APC package. as far as remember, their UNIX support is through scripts. browse those and check how communication with the UPS is realized.
if you have difficulty with that, ring my e-mail.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Help adding a tty in Digital UNIX 4.0D
  1999-02-12  5:00 ` Kjell
  1999-02-13  5:00   ` Charles M Richmond
@ 1999-02-18  5:00   ` Ori Tzoran
  1 sibling, 0 replies; 8+ messages in thread
From: Ori Tzoran @ 1999-02-18  5:00 UTC (permalink / raw)
  To: Kjell

this has really NOTHING to do with adding a tty! the tty in question is a serial port, not a pseudo device and he didn't complain he runs out of ptys!


Kjell wrote:

> From "man MAKEDEV"
>
>   /dev/MAKEDEV [ argument ] [ device-name? ...]
> ...
>   PTY_#
>       Creates groups of pseudoterminal device special files, as follows:
>
>       PTY_1
>           Creates pty0 to pty22.
>
>       PTY_2
>           Creates pty23 to pty45.
>
> Kjell




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1999-02-18  5:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-11  5:00 Help adding a tty in Digital UNIX 4.0D Jim
1999-02-12  5:00 ` Nikola Milutinovic
1999-02-12  5:00 ` Kjell
1999-02-13  5:00   ` Charles M Richmond
1999-02-13  5:00     ` Kjell
1999-02-18  5:00   ` Ori Tzoran
1999-02-13  5:00 ` Charles M Richmond
1999-02-18  5:00 ` Ori Tzoran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox