From: "Denis G. Samsonenko" <d.g.samsonenko@gmail.com> To: community@lists.altlinux.org Subject: [Comm] bashrc, bashrc.d и неинтерактивный shell Date: Sat, 15 Nov 2008 11:27:59 +0600 Message-ID: <957265820811142127y1256edbbq19f8690831798e39@mail.gmail.com> (raw) День добрый! Озаботился я тем, чтобы в системе были определены переменные http_proxy и ftp_proxy. При подъёме сети в зависимости от профиля у меня генерится файл /etc/bashrc.d/proxy.sh с соответствеющим содержимым. Вроде бы всё хорошо, но есть одно но. Скрипты из /etc/bashrc.d запускаются только при интерактивном shell. Отсюда у меня такой косяк: если запускать firefox, например, из эмулятора терминала, то для получающегося процесса переменные http_proxy и ftp_proxy определены; если же запускать из меню KDE, то http_proxy и ftp_proxy не определены. Есть ли специальное место для скриптов, которые должны запускаться при старте оболочки в не зависимости, интерактивная она или нет, кроме ручной правки /etc/bashrc? -- Всего доброго, Денис.
next reply other threads:[~2008-11-15 5:27 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-11-15 5:27 Denis G. Samsonenko [this message] 2008-11-15 7:55 ` [Comm] Настройка xinetd Кудрявцев Сергей 2008-11-15 8:53 ` Andrey Rahmatullin 2008-11-15 8:49 ` [Comm] bashrc, bashrc.d и неинтерактивный shell Sergey Vlasov 2008-11-15 18:43 ` Denis G. Samsonenko 2008-11-16 8:19 ` Sergey Vlasov 2008-11-16 19:15 ` Denis G. Samsonenko 2008-11-16 20:21 ` Sergey Vlasov
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=957265820811142127y1256edbbq19f8690831798e39@mail.gmail.com \ --to=d.g.samsonenko@gmail.com \ --cc=community@lists.altlinux.org \ /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