From owner-freebsd-questions Thu Jan 9 18: 6: 6 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCE7D37B401 for ; Thu, 9 Jan 2003 18:06:04 -0800 (PST) Received: from mail.au.darkbluesea.com (mail.au.darkbluesea.com [203.185.208.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6BB243F43 for ; Thu, 9 Jan 2003 18:06:02 -0800 (PST) (envelope-from d.anker@au.darkbluesea.com) Received: (qmail 92935 invoked by uid 82); 10 Jan 2003 02:02:02 -0000 Received: from unknown (HELO ?10.0.0.188?) (10.0.0.188) by bandit.au.darkbluesea.com with SMTP; 10 Jan 2003 02:02:02 -0000 Subject: Re: Motd Updating From: Duncan Anker To: Coreix Systems - UNIX Developers Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <001401c2b915$54172550$2d01a8c0@apollo> References: <001401c2b915$54172550$2d01a8c0@apollo> Content-Type: text/plain Organization: Dark Blue Sea Message-Id: <1042164381.4807.62.camel@duncan.au.darkbluesea.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 10 Jan 2003 12:06:21 +1000 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 2003-01-11 at 12:01, Coreix Systems - UNIX Developers wrote: > Can someone tell me he name of the .c or .h file containing code to do the > updating of MOTD, > i want to add company specific support data to the source so it can be > updated to motd on a daily basis, but do not want > it to be easily accessiably be sysadmins. > i have done it through a /etc/perodic/daily/script file, but clients can > find it i want to complile it in the source. > I don't believe this is possible. AFAIK, there is no particular code involved. The updating of /etc/motd appears to be done from /etc/rc (which is a shell script). I suppose, as an alternative which may achieve what you want, you could compile your company support data into an executable which you call from rc. -- The information contained in this email is confidential. If you are not the intended recipient, you may not disclose or use the information in this email in any way. Dark Blue Sea does not guarantee the integrity of any emails or attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Dark Blue Sea. Dark Blue Sea does not warrant that any attachments are free from viruses or other defects. You assume all liability for any loss, damage or other consequences which may arise from opening or using the attachments. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message