1828225 Members
2536 Online
109975 Solutions
New Discussion

VMS /etc/motd

 
SOLVED
Go to solution
Jees Joy
Frequent Advisor

VMS /etc/motd

Hi VMS Gurus,

I am very new to Open VMS, I have a VMS 7.3 installedin Alpha ES40 for some testing, I need to add some Message of the day.

Like in Unix we have the file /etc/motd where we can give the comments that will project when the user login; is there any file like that for VMS.


Thanks in advance.

Jees Joy
8 REPLIES 8
Steven Schweda
Honored Contributor

Re: VMS /etc/motd

Nothing built-in, but you could certainly add
something to SYS$MANAGER:SYLOGIN.COM like:

$ motd = "sys$manager:motd.txt"
$ if (f$search( motd) .nes. "")
$ then
$ type 'motd'
$ endif

Preferably in a place where it'll be done
only for an interactive process, possibly
only with a real terminal for sys$output.
Gregg Parmentier
Frequent Advisor
Solution

Re: VMS /etc/motd

Look at the logical sys$welcome. This points to a file typed out at every login.
Steven Schweda
Honored Contributor

Re: VMS /etc/motd

He's right. (How quickly I forget...)

SYS$WELCOME may be defined as a bit of
explicit text, or as "@file", which also may
do exactly what you want.

For example, around here:

ALP $ show logical SYS$WELCOME
"SYS$WELCOME" = "@SYS$MANAGER:WELCOME.TXT" (LNM$SYSTEM_TABLE)
ALP $ type SYS$MANAGER:WELCOME.TXT

Welcome to VMS (Alpha) V7.3-2 on ALP.

Unauthorized use is prohibited.


Here, it almost never changes, so I'm afraid
that I've stopped seeing the thing, and hence
forgot about it fairly completely. Sigh.
Jees Joy
Frequent Advisor

Re: VMS /etc/motd

Thanks my friends, if there is no MOTD then I think Steve's was very helpfull.


Thanks one again everybody
Andy Bustamante
Honored Contributor

Re: VMS /etc/motd


There is also the logical SYS$ANNOUNCE displayed prior to the "Username:" prompt. SYS$WELCOME is displayed after a successful log on. You can define either logical as text or a file.

Welcome the OpenVMS forum and to VMS.

Andy

If you don't have time to do it right, when will you have time to do it over? Reach me at first_name + "." + last_name at sysmanager net
Peter Zeiszler
Trusted Contributor

Re: VMS /etc/motd

Prior to login:
"SYS$ANNOUNCE" = "@sys$manager:announce_MTTIAN.txt"
"TCPIP$FTP_SERVER_ANNOUNCE" = "@sys$manager:ftp_banner.txt"

After successful login:
"SYS$WELCOME" = "@SYS$MANAGER:WELCOME.TXT"
OR
"SYS$WELCOME" = "Welcome to my system"

On some of my systems I actually had a file called news.txt. That file was located in the sys$manager and was world:RE. The last line of the sylogin.com would type out the file. That way I had the normal security announcements in my announce file and then I would have a changing update in the news.txt file.
Ian Miller.
Honored Contributor

Re: VMS /etc/motd

In addition to the standard facilities already described there is freeware
http://vms.process.com/scripts/fileserv/fileserv.com?NOTICE
____________________
Purely Personal Opinion
Jan van den Ende
Honored Contributor

Re: VMS /etc/motd

Jees Joy,

from your Forum Profile:


I have assigned points to 24 of 56 responses to my questions.


Maybe you can find some time to do some assigning?

http://forums1.itrc.hp.com/service/forums/helptips.do?#33

Mind, I do NOT say you necessarily need to give lots of points. It is fully up to _YOU_ to decide how many. If you consider an answer is not deserving any points, you can also assign 0 ( = zero ) points, and then that answer will no longer be counted as unassigned.
Consider, that every poster took at least the trouble of posting for you!

To easily find your streams with unassigned points, click your own name somewhere.
This will bring up your profile.
Near the bottom of that page, under the caption "My Question(s)" you will find "questions or topics with unassigned points " Clicking that will give all, and only, your questions that still have unassigned postings.

Thanks on behalf of your Forum colleagues.

PS. - nothing personal in this. I try to post it to everyone with this kind of assignment ratio in this forum. If you have received a posting like this before - please do not take offence - none is intended!

PPS. - Zero points for this.

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.