From: php-coder <php-coder@ngs.ru>
To: community@altlinux.ru
Subject: Re: [Comm] python
Date: Sat, 14 May 2005 18:24:07 +0700
Message-ID: <20050514112407.GA19519@mycomp.mydomain> (raw)
In-Reply-To: <1602263403.20050514124906@mail.ru>
--- Anton Gorlov 2005-05-14 12:49:06 +0400
+++ php-coder 2005-05-14 18:09:04 +0700
хм... :)) Можно скрипты ваши покритиковать/высказать свои мысли
по-поводу?
> #!/bin/bash
Как говорят на ЛОРе: "Башизмы давить!" (с)
А почему: #!/bin/sh
> echo YOU MUST BE ROOT TO RUN THIS SCRIPT
> echo
Просто так выводить надпись не интересно :)) Вот, тут рядом был скрипт
lav@ там была проверка на рутность. Адаптируя к вашему скрипту, я бы
написал так:
if [ "$UID" != "0" ]; then
echo -e "\e[31;1;40mYou must be root to run this script!\e[0m" > /dev/stderr
exit 1
fi
> mkdir /var/log/ibs
Для надежности я бы добавил опцию -p
> chown apache /var/log/ibs
Это вы тут владельца меняете или группу?
> chkconfig --add ibs
chkconfig ibs on
> echo Enter system \(default admin\) password:
> read pass
read -p "Enter system (default admin) password: " pass
> enc_pass=`/usr/local/ibs/sc/md5crypt.py $pass`
У всех свои вкусы конечно, но мне больше по душе такая форма: $(command)
Удачи!
--
+ php-coder
+ php-coder[at]altlinux[dot]ru
next prev parent reply other threads:[~2005-05-14 11:24 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-14 7:50 Anton Gorlov
2005-05-14 8:01 ` Alexey Morsov
2005-05-14 8:03 ` Re[2]: " Anton Gorlov
2005-05-14 8:06 ` Re[3]: " Anton Gorlov
2005-05-14 8:42 ` Alex Gorbachenko
2005-05-14 8:49 ` Re[2]: " Anton Gorlov
2005-05-14 8:57 ` Alexey Morsov
2005-05-14 10:01 ` Re[2]: " Anton Gorlov
2005-05-14 10:47 ` Alex Gorbachenko
2005-05-14 11:24 ` php-coder [this message]
2005-05-14 11:23 ` Re[2]: " Anton Gorlov
2005-05-14 8:55 ` Alexey Rusakov
2005-05-14 12:20 ` Alexey Morsov
2005-05-14 12:25 ` Alexey Rusakov
2005-05-14 13:43 ` Re[2]: " Anton Gorlov
2005-05-14 13:48 ` Michael Isachenkov
2005-05-14 13:50 ` Re[4]: " Anton Gorlov
2005-05-14 13:57 ` Re[5]: " Anton Gorlov
2005-05-14 14:07 ` Michael Isachenkov
2005-05-14 14:19 ` Re[7]: " Anton Gorlov
2005-05-14 18:12 ` Andrey Orlov
2005-05-15 6:43 ` Re[9]: " Anton Gorlov
2005-05-17 19:39 ` Andrey Orlov
2005-05-17 20:09 ` Re[11]: " Anton Gorlov
2005-05-17 20:19 ` [Comm] python Michael Shigorin
2005-05-19 15:58 ` Anton Gorlov
2005-05-19 16:02 ` [Comm] postgresql-python Michael Shigorin
2005-05-19 17:03 ` Anton Gorlov
2005-05-19 17:20 ` [Comm] postgresql-python Michael Shigorin
2005-05-21 9:48 ` [Comm] postgresql-python Denis Smirnov
2005-05-22 18:51 ` Maxim Tyurin
2005-05-20 9:43 ` [Comm] Re: python Maxim Tyurin
2005-05-20 10:59 ` Re[2]: " Anton Gorlov
2005-05-20 11:47 ` Maxim Tyurin
2005-05-20 11:55 ` Re[2]: " Anton Gorlov
2005-05-14 14:11 ` [Comm] python Alex Gorbachenko
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=20050514112407.GA19519@mycomp.mydomain \
--to=php-coder@ngs.ru \
--cc=community@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