Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

Brain fried -- Core dumped


programming / comp.lang.tcl / Re: exec under Unix/BSD/Linux

SubjectAuthor
* exec under Unix/BSD/LinuxRoderick
`* Re: exec under Unix/BSD/LinuxGerald Lester
 `* Re: exec under Unix/BSD/LinuxRoderick
  `- Re: exec under Unix/BSD/LinuxChristian Gollwitzer

1
Subject: exec under Unix/BSD/Linux
From: Roderick
Newsgroups: comp.lang.tcl
Organization: MB-NET.NET for Open-News-Network e.V.
Date: Wed, 4 May 2022 10:24 UTC
Path: i2pn2.org!i2pn.org!aioe.org!news.mb-net.net!open-news-network.org!.POSTED.ip5f5bd1bc.dynamic.kabel-deutschland.de!not-for-mail
From: hru...@gmail.com (Roderick)
Newsgroups: comp.lang.tcl
Subject: exec under Unix/BSD/Linux
Date: Wed, 4 May 2022 10:24:35 +0000
Organization: MB-NET.NET for Open-News-Network e.V.
Message-ID: <205fcc4f-732c-4671-c547-c6c0c22018e8@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset=US-ASCII
Injection-Info: gwaiyur.mb-net.net; posting-host="ip5f5bd1bc.dynamic.kabel-deutschland.de:95.91.209.188";
logging-data="15771"; mail-complaints-to="abuse@open-news-network.org"
Cancel-Lock: sha1:WiMsTAqbqr5Y86JbRLmvaqYD1n4=
X-User-ID: U2FsdGVkX1+tFzrl6fPACtGtPxoSr/6RZSn3y9oq+RdYufQwLO2tlQ==
View all headers

I suppose, exec does not call a shell. Am I right?

Thanks
Rod.



Subject: Re: exec under Unix/BSD/Linux
From: Gerald Lester
Newsgroups: comp.lang.tcl
Organization: KnG Consulting, LLC
Date: Wed, 4 May 2022 12:39 UTC
References: 1
Path: i2pn2.org!i2pn.org!aioe.org!6KyXcQSpbL6vMZoilCC4nA.user.46.165.242.75.POSTED!not-for-mail
From: Gerald.L...@KnG-Consulting.net (Gerald Lester)
Newsgroups: comp.lang.tcl
Subject: Re: exec under Unix/BSD/Linux
Date: Wed, 4 May 2022 07:39:52 -0500
Organization: KnG Consulting, LLC
Message-ID: <t4ts6o$1jol$1@gioia.aioe.org>
References: <205fcc4f-732c-4671-c547-c6c0c22018e8@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="53013"; posting-host="6KyXcQSpbL6vMZoilCC4nA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
View all headers
On 5/4/22 05:24, Roderick wrote:

I suppose, exec does not call a shell. Am I right?

Yes, that is correct -- exec does not "call" a shell, unless of course you exec "/bin/sh" or such.


--
+----------------------------------------------------------------------+
| Gerald W. Lester, President, KNG Consulting LLC                      |
| Email: Gerald.Lester@kng-consulting.net                              |
+----------------------------------------------------------------------+


Subject: Re: exec under Unix/BSD/Linux
From: Roderick
Newsgroups: comp.lang.tcl
Organization: MB-NET.NET for Open-News-Network e.V.
Date: Wed, 4 May 2022 17:40 UTC
References: 1 2
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED.ip5f5bd1bc.dynamic.kabel-deutschland.de!not-for-mail
From: hru...@gmail.com (Roderick)
Newsgroups: comp.lang.tcl
Subject: Re: exec under Unix/BSD/Linux
Date: Wed, 4 May 2022 17:40:26 +0000
Organization: MB-NET.NET for Open-News-Network e.V.
Message-ID: <81779122-765b-598b-5f97-bce0116cfb74@gmail.com>
References: <205fcc4f-732c-4671-c547-c6c0c22018e8@gmail.com> <t4ts6o$1jol$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
Injection-Info: gwaiyur.mb-net.net; posting-host="ip5f5bd1bc.dynamic.kabel-deutschland.de:95.91.209.188";
logging-data="66781"; mail-complaints-to="abuse@open-news-network.org"
Cancel-Lock: sha1:mNj55UBzzO7ltlNQUvm2oTc/DQU=
In-Reply-To: <t4ts6o$1jol$1@gioia.aioe.org>
X-User-ID: U2FsdGVkX19EAfO0lafk/6p/Z/C6vVBjI1hTCghsTmCDQp9uwedp7w==
View all headers

On Wed, 4 May 2022, Gerald Lester wrote:

On 5/4/22 05:24, Roderick wrote:

I suppose, exec does not call a shell. Am I right?

Yes, that is correct -- exec does not "call" a shell, unless of course you exec "/bin/sh" or such.

Thanks!

You a right, "call" is not the rith expression, but "hand the
argument to a command interpreter" like in "man sysem":

      "The system() function hands the argument string to the command
      interpreter sh(1).  The calling process waits for the shell to finish
      executing the command, ignoring SIGINT and SIGQUIT, and blocking
      SIGCHLD."

Rod.



Subject: Re: exec under Unix/BSD/Linux
From: Christian Gollwitzer
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Wed, 4 May 2022 19:07 UTC
References: 1 2 3
Path: i2pn2.org!rocksolid2!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: aurio...@gmx.de (Christian Gollwitzer)
Newsgroups: comp.lang.tcl
Subject: Re: exec under Unix/BSD/Linux
Date: Wed, 4 May 2022 21:07:30 +0200
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <t4uitk$8gi$1@dont-email.me>
References: <205fcc4f-732c-4671-c547-c6c0c22018e8@gmail.com>
<t4ts6o$1jol$1@gioia.aioe.org>
<81779122-765b-598b-5f97-bce0116cfb74@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 4 May 2022 19:07:32 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a2c87feee6716fddfbda5918b84f332e";
logging-data="8722"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+n17U8BLny7JUBroCZ3wAHM26ugk8PIvs="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:91.0)
Gecko/20100101 Thunderbird/91.8.1
Cancel-Lock: sha1:pA1WxX4IaRqKCnRD+FbesrJzo4w=
In-Reply-To: <81779122-765b-598b-5f97-bce0116cfb74@gmail.com>
View all headers
Am 04.05.22 um 19:40 schrieb Roderick:

On Wed, 4 May 2022, Gerald Lester wrote:

On 5/4/22 05:24, Roderick wrote:

I suppose, exec does not call a shell. Am I right?

Yes, that is correct -- exec does not "call" a shell, unless of course you exec "/bin/sh" or such.

Thanks!

You a right, "call" is not the rith expression, but "hand the
argument to a command interpreter" like in "man sysem":

      "The system() function hands the argument string to the command
      interpreter sh(1).  The calling process waits for the shell to finish
      executing the command, ignoring SIGINT and SIGQUIT, and blocking
      SIGCHLD."

Still this is true - exec in Tcl does not start /bin/sh or the like. Instead, it uses the exec syscall to execute the commands given and parses the arguments etc. itself in order to mimic the shell and handle redirections for stderr , pipes etc. That is also why the syntax for redirections is slightly different from the shell etc.

Christian


1
rocksolid light 0.7.2
clearneti2ptor