From: Leonid Krivoshein <klark.devel@gmail.com>
To: make-initrd@lists.altlinux.org
Subject: Re: [make-initrd] Fwd: [#269003] TESTED make-initrd.git=2.14.1-alt1
Date: Wed, 7 Apr 2021 02:59:23 +0300
Message-ID: <7d858ad6-daf1-b4b2-5730-a989de7bf41f@gmail.com> (raw)
In-Reply-To: <20210406190532.ujqp7edd3niul4n6@example.org>
06.04.2021 22:05, Alexey Gladkov пишет:
> [...]
> Ты мне хочешь показать на bash, что не вписывается в парадигму ?! ))
> Может лучше всё-таки словами ? )))
На пальцах объяснять дольше получается, на баше лаконичней выходит --
см. ниже...
> [...]
>> } </dev/console >/dev/console 2>&1
>>
>> потому что interactive_off() делать и сам pipeline должен в идеале, если на
>> выходе этого не сделано в шаге.
> Каждый шаг это отдельная программа. Если ты переоткроешь дескрипторы, то
> он будут открыты только для этого шага.
interactive_on()
{
:> /.initrd/interactive
exec </dev/console >/dev/console 2>&1
}
interactive_off()
{
rm -f /.initrd/interactive
exec </dev/null >/var/log/pipelined.log 2>&1
}
DLG в описании шага -- аналогичен PASS, но можно открывать интерактивное
выполнение до запуска скрипта с шагом и не отключать его после, если
следующий шаг описан тоже как DLG. Конечно, отключать его во всех
остальных случаях при завершении шага, поскольку дескрипторы открыты в
цикле верхнего уровня.
Понятно, что использовать перенаправление руками всегда можно, но надо
ещё въехать в твой код, куда, когда и чего перенаправляется. Тут ещё
появляется возможность учитывать диалоги при построении параллельно
работающих цепочек, я-то привёл упрощённую реализацию.
--
Best regards,
Leonid Krivoshein.
next prev parent reply other threads:[~2021-04-06 23:59 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-05 20:33 ` Leonid Krivoshein
2021-04-05 22:51 ` Leonid Krivoshein
2021-04-06 8:44 ` Alexey Gladkov
2021-04-06 17:38 ` Leonid Krivoshein
2021-04-07 13:13 ` Alexey Gladkov
2021-04-06 8:28 ` Alexey Gladkov
2021-04-06 16:38 ` Leonid Krivoshein
2021-04-06 19:05 ` Alexey Gladkov
2021-04-06 19:30 ` Alexey Gladkov
2021-04-06 23:13 ` Leonid Krivoshein
2021-04-07 12:28 ` Alexey Gladkov
2021-04-06 23:00 ` Leonid Krivoshein
2021-04-07 12:11 ` Alexey Gladkov
2021-04-06 23:59 ` Leonid Krivoshein [this message]
2021-04-07 1:51 ` Leonid Krivoshein
2021-04-07 12:57 ` Alexey Gladkov
2021-04-07 18:29 ` Leonid Krivoshein
2021-05-26 15:05 ` Leonid Krivoshein
2021-05-26 18:12 ` Alexey Gladkov
2021-05-26 19:25 ` Leonid Krivoshein
2021-05-27 8:37 ` Alexey Gladkov
2021-05-27 12:29 ` Leonid Krivoshein
2021-05-27 13:53 ` Alexey Gladkov
2021-05-27 15:10 ` Leonid Krivoshein
2021-05-27 17:04 ` Alexey Gladkov
2021-05-27 17:11 ` Leonid Krivoshein
2021-05-30 20:34 ` Leonid Krivoshein
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=7d858ad6-daf1-b4b2-5730-a989de7bf41f@gmail.com \
--to=klark.devel@gmail.com \
--cc=make-initrd@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
Make-initrd development discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/make-initrd/0 make-initrd/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 make-initrd make-initrd/ http://lore.altlinux.org/make-initrd \
make-initrd@lists.altlinux.org make-initrd@lists.altlinux.ru make-initrd@lists.altlinux.com
public-inbox-index make-initrd
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.make-initrd
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git