zsh-users
 help / color / mirror / code / Atom feed
From: Jim <linux.tech.guy@gmail.com>
To: Pier Paolo Grassi <pierpaolog@gmail.com>
Cc: zsh <zsh-users@zsh.org>
Subject: Re: read with redirected stdin
Date: Mon, 9 Jan 2023 16:47:08 -0600	[thread overview]
Message-ID: <CA+rB6G+u0ePsa2Y_rUqzHsVHsk9SG=we334xa-PHgX1EREL8Mw@mail.gmail.com> (raw)
In-Reply-To: <CAP+y1xCF5QGKaO4afGnkBapiYGnnyuoN2b4zHnM_QZy5vAy+_Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 929 bytes --]

Hi Pier,

On Mon, Jan 9, 2023 at 10:01 AM Pier Paolo Grassi <pierpaolog@gmail.com>
wrote:

> hello Jim, your script reads the tty associated with the file descriptors,
> while I am looking for a way to get the tty controlling a certain process.
> I don't know much about this argument but it seems to me these are not
> necessarily the same.
> cheers
>

Could you explain what you mean by " I am looking for a way to get the tty
controlling
a certain process". This seems backwards to me or am I misinterpreting what
you said?
I haven't seen anything that shows ttys pointing to a process. It may
exist, but I don't
know where you would find it if it does. I just know that processes attach
tty devices
via file descriptors on Linux and Unix systems. The read command, in
several shells,
supports this with the "-u N" option. Maybe I'm just looking at this from
the wrong
perspective(wouldn't  be the first time).

Regards,

Jim

[-- Attachment #2: Type: text/html, Size: 1450 bytes --]

  reply	other threads:[~2023-01-09 22:48 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-07 13:31 Pier Paolo Grassi
2023-01-07 13:44 ` Roman Perepelitsa
2023-01-07 17:21   ` Pier Paolo Grassi
2023-01-07 17:31     ` Roman Perepelitsa
2023-01-07 17:36       ` Pier Paolo Grassi
2023-01-07 17:52         ` Roman Perepelitsa
2023-01-08 13:23       ` Daniel Shahaf
2023-01-08 13:48         ` Roman Perepelitsa
2023-01-08 14:21           ` Daniel Shahaf
2023-01-08 14:42             ` Roman Perepelitsa
2023-01-07 17:33     ` Pier Paolo Grassi
2023-01-08  4:28     ` Jim
2023-01-08  4:44       ` Pier Paolo Grassi
2023-01-08 21:18         ` Jim
2023-01-09 16:01           ` Pier Paolo Grassi
2023-01-09 22:47             ` Jim [this message]
2023-01-10  2:46               ` Bart Schaefer
2023-01-10  6:03                 ` Pier Paolo Grassi
2023-01-08 14:44       ` Ray Andrews
2023-01-08 15:06         ` Roman Perepelitsa
2023-01-08 20:23           ` Ray Andrews

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='CA+rB6G+u0ePsa2Y_rUqzHsVHsk9SG=we334xa-PHgX1EREL8Mw@mail.gmail.com' \
    --to=linux.tech.guy@gmail.com \
    --cc=linuxtechguy@gmail.com \
    --cc=pierpaolog@gmail.com \
    --cc=zsh-users@zsh.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).