Cc: freebsd-questions@freebsd.org
Subject: Re: referencing in files
On Wed, Mar 02, 2005 at 09:23:35AM +0200, Jarrod Meyer wrote:
What I meant was, kinda like if you have a changing value in one file,
right? And you want it to automatically update in another file without
having to always
On Wed, Mar 02, 2005 at 11:43:13AM +0200, Jarrod - Cybertek wrote:
First, thanks. What I just wanted to try out is to have my /etc/motd updated
automatically from a changing value in another text file. So that way I
wouldn't have to update both every time. No way for that? Thanks.
You keep
Hi Jarrod,
what I think you could do is to make a script to automatize the whole procedure.
This script would update both the text file and the /etc/motd.
Since /etc/motd is a plain text file and not a shell script or
something like that, you cannot do what you will with a command
directly in it.
PROTECTED] [mailto:owner-freebsd-
[EMAIL PROTECTED] On Behalf Of Kris Kennaway
Sent: Wednesday, March 02, 2005 12:29 PM
To: Jarrod - Cybertek
Cc: [EMAIL PROTECTED]; 'Kris Kennaway'
Subject: Re: referencing in files
On Wed, Mar 02, 2005 at 11:43:13AM +0200, Jarrod - Cybertek wrote:
First
# Jarrod - Cybertek:
Say i have a file /root/setup.client.sh, and it has this line:
IFACE=ng10
Now I want to have the motd, when it is displayed after login, to go fetch
the current value of that IFACE, and display that value.
This probably won't get any points for style, but instead
On Wed, Mar 02, 2005 at 01:02:05PM +0200, Jarrod - Cybertek wrote:
Ok sorry.
Precisely. I have a file (actually a script, sorry) that has a lot of the
settings for a client in, eg IP addresses, interface they connect on etc.
and I use the motd to keep all this together, just to make things
Just a quick question, is there a way to tell a normal text file (for
instance: /etc/motd) to get a value from another file when it displays? And
what would be the syntax if this is possible? Thank you to whomever replies.
--
If more of us valued food and cheer and song above
On Tue, Mar 01, 2005 at 12:22:37PM +0200, Jarrod Meyer wrote:
Just a quick question, is there a way to tell a normal text file (for
instance: /etc/motd) to get a value from another file when it displays? And
what would be the syntax if this is possible? Thank you to whomever replies.
No,
)
-Original Message-
From: [EMAIL PROTECTED] [mailto:owner-freebsd-
[EMAIL PROTECTED] On Behalf Of Jarrod Meyer
Sent: Tuesday, March 01, 2005 12:23 PM
To: freebsd-questions@freebsd.org
Subject: referencing in files
Just a quick question, is there a way to tell a normal text file
On Wed, Mar 02, 2005 at 09:23:35AM +0200, Jarrod Meyer wrote:
What I meant was, kinda like if you have a changing value in one file,
right? And you want it to automatically update in another file without
having to always manually do it yourself and without writing a script, can
you just
10 matches
Mail list logo