Thread View: best.unix
3 messages
3 total messages
Started by Sameer Manek
Fri, 13 Nov 1998 00:00
gettytab
Author: Sameer Manek
Date: Fri, 13 Nov 1998 00:00
Date: Fri, 13 Nov 1998 00:00
20 lines
1177 bytes
1177 bytes
Does anyone know how to use the if tag for freebsd's gettytab?
This is what the man page has to say about the if directive.
Name Type Default Description
if str unused display named file before prompt,
like /etc/issue
default:\
:cb:ce:ck:lc:fd#1000:if/etc/issue:sp#1200:
This is what i have now, but i've also tried
if=/etc/issue
if /etc/issue
Unfortunately none of these work, which is leading me to suspect that the
'unused' means it's not implimented.
Sameer
--
Sameer Manek manek@best.com
MIT Magic Cookies, made with Xtc
Re: gettytab
Author: Thad Floryan
Date: Fri, 13 Nov 1998 00:00
Date: Fri, 13 Nov 1998 00:00
52 lines
2588 bytes
2588 bytes
manek@best.com (Sameer Manek) wrote:
| Does anyone know how to use the if tag for freebsd's gettytab?
| This is what the man page has to say about the if directive.
| Name Type Default Description
| if str unused display named file before prompt,
| like /etc/issue
|
| default:\
| :cb:ce:ck:lc:fd#1000:if/etc/issue:sp#1200:
^
You need an "=" there to conform to the syntax specs.
| This is what i have now, but i've also tried
| if=/etc/issue
| if /etc/issue
|
| Unfortunately none of these work, which is leading me to suspect that the
| 'unused' means it's not implimented.
|
| Sameer
Hmmmm, looking at "man gettytab" on one of my systems (a SunOS 4.1.4 box),
it doesn't have an "if" entry but it does have:
im str NULL initial (banner) message
and
lm str login: login prompt
and further on (in the man page):
The initial message, and login message, im and lm may
include the character sequence %h or %t to obtain the host-
name or tty name respectively. (%% obtains a single `%'
character.) The hostname is normally obtained from the sys-
tem, but may be set by the hn table entry. In either case
it may be edited with he. The he string is a sequence of
characters, each character that is neither `@' nor `#' is
copied into the final hostname. A `@' in the he string,
copies one character from the real hostname to the final
hostname. A `#' in the he string, skips the next character
of the real hostname. Surplus `@' and `#' characters are
ignored.
and the actual entry in /etc/gettytab is:
default:\
:ap:lm=\r\n%h login\72 :sp#9600:
Is there something like "lm" in FreeBSD's gettytab? I didn't notice
a "login:" in your default entry.
Thad
Re: gettytab
Author: Sameer Manek
Date: Fri, 13 Nov 1998 00:00
Date: Fri, 13 Nov 1998 00:00
52 lines
2635 bytes
2635 bytes
In article <364c4f75$0$12761@nntp1.ba.best.com>,
Thad Floryan <thad@thadlabs.com> wrote:
>manek@best.com (Sameer Manek) wrote:
>Hmmmm, looking at "man gettytab" on one of my systems (a SunOS 4.1.4 box),
>it doesn't have an "if" entry but it does have:
>
> im str NULL initial (banner) message
>and
> lm str login: login prompt
>
>and further on (in the man page):
>
> The initial message, and login message, im and lm may
> include the character sequence %h or %t to obtain the host-
> name or tty name respectively. (%% obtains a single `%'
> character.) The hostname is normally obtained from the sys-
> tem, but may be set by the hn table entry. In either case
> it may be edited with he. The he string is a sequence of
> characters, each character that is neither `@' nor `#' is
> copied into the final hostname. A `@' in the he string,
> copies one character from the real hostname to the final
> hostname. A `#' in the he string, skips the next character
> of the real hostname. Surplus `@' and `#' characters are
> ignored.
>
>and the actual entry in /etc/gettytab is:
>
> default:\
> :ap:lm=\r\n%h login\72 :sp#9600:
>
>Is there something like "lm" in FreeBSD's gettytab? I didn't notice
>a "login:" in your default entry.
>
>Thad
I previously had this, for some reason i was thinking that the # would
tell init to ignore that line, guess mr cpu was asleep even though
i was still awake. Once i deleted that line it was all good.
default:\
# :cb:ce:ck:lc:fd#1000:im=\r\nFreeBSD (%h) (%t)\r\n\r\n:sp#1200:
:cb:ce:ck:lc:fd#1000:if=/etc/issue:sp#1200:
I looked at my gettytab, i don't appear to have a lm directive in there,
looks like puts it in there by default, only defination that has the
lm directive is a 150 bps line definations.
Thanks
Sameer
--
Sameer Manek manek@best.com
MIT Magic Cookies, made with Xtc
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads