Please remove me from this list I didn't ask for your emails Candy ???? ________________________________ From: arch-general <arch-general-bounces@archlinux.org> on behalf of arch-general-request@archlinux.org <arch-general-request@archlinux.org> Sent: Thursday, May 31, 2018 7:00:01 AM To: arch-general@archlinux.org Subject: arch-general Digest, Vol 163, Issue 29 Send arch-general mailing list submissions to arch-general@archlinux.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.archlinux.org/listinfo/arch-general or, via email, send a message with subject or body 'help' to arch-general-request@archlinux.org You can reach the person managing the list at arch-general-owner@archlinux.org When replying, please edit your Subject line so it is more specific than "Re: Contents of arch-general digest..." Today's Topics: 1. Re: Set ip lan address /etc/environment (Ralph Corderoy) 2. Re: Set ip lan address /etc/environment (Leonid Isaev) ---------------------------------------------------------------------- Message: 1 Date: Thu, 31 May 2018 10:44:25 +0100 From: Ralph Corderoy <ralph@inputplus.co.uk> To: General Discussion about Arch Linux <arch-general@archlinux.org> Subject: Re: [arch-general] Set ip lan address /etc/environment Message-ID: <20180531094425.CAC71200E3@orac.inputplus.co.uk> Content-Type: text/plain; charset=utf-8 Hi Maykel,
I need define variable called ip with current ip address machine... And when reboot machine, the variable ip always has ip address.
Yes, I think we all figured that bit out. :-) But why; what's going to be using that IP-address environment variable, and when? -- Cheers, Ralph. https://plus.google.com/+RalphCorderoy ------------------------------ Message: 2 Date: Thu, 31 May 2018 04:01:16 -0600 From: Leonid Isaev <leonid.isaev@jila.colorado.edu> To: arch-general@archlinux.org Subject: Re: [arch-general] Set ip lan address /etc/environment Message-ID: <20180531100116.GA22183@takahe.colorado.edu> Content-Type: text/plain; charset=us-ascii On Thu, May 31, 2018 at 10:44:25AM +0100, Ralph Corderoy wrote:
Hi Maykel,
I need define variable called ip with current ip address machine... And when reboot machine, the variable ip always has ip address.
Yes, I think we all figured that bit out. :-) But why; what's going to be using that IP-address environment variable, and when?
Indeed. Is it for consumption of users whose shell you don't know? Is it for scripts, like cron jobs? In the former case, see what is in /etc/shells, and drop a script to /etc/profile.d, one for each shell. But that will be for login shells. In the latter case, I am afraid you need to define it each time... Finally, a bit of a puzzle, what are you going to do when the network goes down, i.e. should the variable be unset or updated? In other words, how certain are you that the IP address remains unchanged throughout the machine uptime? -- Leonid Isaev ------------------------------ Subject: Digest Footer _______________________________________________ arch-general mailing list arch-general@archlinux.org https://lists.archlinux.org/listinfo/arch-general ------------------------------ End of arch-general Digest, Vol 163, Issue 29 *********************************************