From: Boldin Pavel <boldin.pavel@gmail.com>
To: "культурный офтопик" <smoke-room@altlinux.ru>
Subject: Re: [room] Python
Date: Sat, 16 Jul 2005 04:22:20 +0500
Message-ID: <42D8452C.6090307@inbox.ru> (raw)
In-Reply-To: <20050711090502.GK22373@wrars-comp.wrarsdomain>
Andrey Rahmatullin пишет:
>On Mon, Jul 11, 2005 at 11:10:33AM +0400, Антон Горлов wrote:
>
>
>>Кстати по поводу питона -является ли нарушением то что в начале идёт не
>>
>>
>Если запускать это дело через интерпретатор, а не просто шеллом - пофик.
>Шелл такое не запустит.
>
>
"binfmt_script.c" 116
linux-2.6.12
static int load_script(struct linux_binprm *bprm,struct pt_regs *regs)
{
char *cp, *i_name, *i_arg;
struct file *file;
char interp[BINPRM_BUF_SIZE];
int retval;
if ((bprm->buf[0] != '#') || (bprm->buf[1] != '!') || (bprm->sh_bang))
return -ENOEXEC;
/*
* This section does the #! interpretation.
* Sorta complicated, but hopefully it will work. -TYT
*/
PS: запускает не шел (который bash), а ядро. или я что-то неправильно понял?
--
Boldin Pavel aka davinchi. mail-to: ldavinchi /at\ inbox _dot_ ru
ZU - Zagovor Unixoidov. SSAU 303.
next prev parent reply other threads:[~2005-07-15 23:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-11 6:40 Антон Горлов
2005-07-11 7:01 ` Maxim Tyurin
2005-07-11 7:08 ` Антон Горлов
2005-07-11 7:24 ` Maxim Tyurin
2005-07-11 7:10 ` Антон Горлов
2005-07-11 9:05 ` Andrey Rahmatullin
2005-07-15 23:22 ` Boldin Pavel [this message]
2005-07-16 18:17 ` Andrey Rahmatullin
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=42D8452C.6090307@inbox.ru \
--to=boldin.pavel@gmail.com \
--cc=ldavinchi@inbox.ru \
--cc=smoke-room@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
Культурный офтопик
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/smoke-room/0 smoke-room/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 smoke-room smoke-room/ http://lore.altlinux.org/smoke-room \
smoke-room@lists.altlinux.org smoke-room@lists.altlinux.ru smoke-room@lists.altlinux.com smoke-room@altlinux.ru smoke-room@altlinux.org smoke-room@altlinux.com
public-inbox-index smoke-room
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.smoke-room
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git