ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Mikhail Zabaluev <mhz@alt-linux.org>
To: mandrake-russian@altlinux.ru
Subject: [mdk-re] Re: окружение
Date: Mon Aug 13 23:54:01 2001
Message-ID: <20010814002147.H21571@localhost.localdomain> (raw)
In-Reply-To: <3B77C66E.8C41EC7F@zmail.ru>; from cornet@zmail.ru on Mon, Aug 13, 2001 at 04:22:06PM +0400

Hello cornet,

On Mon, Aug 13, 2001 at 04:22:06PM +0400, cornet wrote:
>
> > Я обнаружил этот файл здесь: /etc/rc.d/rc.local
> > Было похоже, что это именно то, что мне нужно. В любом случае, спасибо за
> > совет. Добавил в конец этого файла строки:
> > 
> > ##################### HB #########################
> > export RC_LOCAL="It worked!"
> > 
> > Перезагрузился,   но  после логона никакой переменной RC_LOCAL в Environment
> > не обнаружил ( printenv | grep -i loc ничего не печатает ). Эх. :(
> > Но,  может  быть,  я  просто  что-то  не  так делаю, например, вместо
> > export RC_LOCAL="It worked!"
> > нужно написать совсем другое?
> > 
> > Как   я  догадываюсь,  тот  shell,  в  к-рый  я попадаю после logging on, не
> > является потомком того shell, к-рый выполняет скрипт /etc/rc.d/rc.local
>
> Если Вам нужно обьявить переменную для всех процессов - пишите ее
> в /etc/sysconfig/i18n
> Может это и не совсем правильно и культурно, но железно работает,
> причем да же перезагружаться не надо.

Чтобы не делать wrong thing, экспортируйте общее окружение в /etc/profile
или в отдельном скрипте в каталоге /etc/profile.d

Чтобы не перезагружаться, достаточно набрать:
exec bash --login

-- 
Stay tuned,
  MhZ                                     JID: mookid@jabber.org
___________
First Law of Bicycling:
	No matter which way you ride, it's uphill and against the wind.



      reply	other threads:[~2001-08-13 23:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-12 19:44 Re[2]: [mdk-re] ÏËÒÕÖÅÎÉÅ Serge Skorokhodov
2001-08-13 15:42 ` Re[4]: " Henri Bourbon
2001-08-13 16:06   ` [mdk-re] окружение cornet
2001-08-13 23:54     ` Mikhail Zabaluev [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010814002147.H21571@localhost.localdomain \
    --to=mhz@alt-linux.org \
    --cc=mandrake-russian@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git