Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <eb630d749f754ffeef2dbcf0b8ba4841@msgid.frell.theremailer.net>
Deutsch   English   Français   Italiano  
<eb630d749f754ffeef2dbcf0b8ba4841@msgid.frell.theremailer.net>

View for Bookmarking (what is this?)
Look up another Usenet article

From: Fritz Wuehler <fritz@spamexpire-202405.rodent.frell.theremailer.net>
Subject: Re: How many ways can you run a script?
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
References: <v372oq462c@dont-email.me>
Message-ID: <eb630d749f754ffeef2dbcf0b8ba4841@msgid.frell.theremailer.net>
Date: Thu, 30 May 2024 20:33:46 +0200
Newsgroups: comp.os.linux.misc
Path: ...!news.mixmin.net!news2.arglkargh.de!alphared!sewer!news.dizum.net!not-for-mail
Organization: dizum.com - The Internet Problem Provider
X-Abuse: abuse@dizum.com
Injection-Info: sewer.dizum.com - 2001::1/128
Bytes: 1498
Lines: 34

Woozy Song <suzyw...@outlook.com> [WS]:
WS> I know these are not all equivalent and may have idiosyncracies.

You forgot the most obvious ones (since this is unix we are
talkiing about):

$ [long (or short) pipe] | sh

and

$ < myscript sh



Here are a few more exotic ones:

$ find myscript -print0 | xargs -0 sh

$ echo | parallel --pipe ./myscript

$ echo "From " | reformail -s ./myscript
# Similar tricks exist for procmail, maildrop, postfix and most other MTAs

# chroot /tmp/playground /statically_compiled_shell myscript

$ sg - some_group -c ./myscript

$ < /dev/null tpipe ./myscript

$ zip test.zip myscript; funzip test.zip | sh

$ < /dev/zero dd bs=1024 count=10 >tempfile 2>&1;\
  tar -M --tape-length=1 --info-script ./myscript -cf /dev/null tempfile;\
  rm -f tempfile