zsh-users
 help / color / mirror / code / Atom feed
From: Pier Paolo Grassi <pierpaolog@gmail.com>
To: linuxtechguy@gmail.com
Cc: zsh <zsh-users@zsh.org>
Subject: Re: read with redirected stdin
Date: Mon, 9 Jan 2023 17:01:04 +0100	[thread overview]
Message-ID: <CAP+y1xCF5QGKaO4afGnkBapiYGnnyuoN2b4zHnM_QZy5vAy+_Q@mail.gmail.com> (raw)
In-Reply-To: <CA+rB6GL2=RCjQvFz5k3SBJpRhr2oW582u5BRqXQ8n2_5D-TLhA@mail.gmail.com>

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

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

Il giorno dom 8 gen 2023 alle 22:18 Jim <linux.tech.guy@gmail.com> ha
scritto:

>
> On Sat, Jan 7, 2023 at 10:44 PM Pier Paolo Grassi <pierpaolog@gmail.com>
> wrote:
>
>> Thanks, I'll check it out.
>>
>> Pier Paolo Grassi
>>
>
> Not sure this is what you are looking for but in re-reading your original
> email you mention
> checking for pipes. The script I attached  in the earlier email was
> checking fd 0, so I also
> tried checking fd 1.  The results are as follows looking at my /proc.
>
> zstat +link /proc/<pid>/fd/0 2>/dev/null
> 25189 12199 17227 pts/40  man
> 25198 25189 17227 pipe    man
> 25199 25189 17227 pipe    less
> zstat +link /proc/<pid>/fd/1 2>/dev/null
> 25189 12199 17227 pts/40  man
> 25198 25189 17227 pipe    man
> 25199 25189 17227 pts/40  less
>
> Not sure if it will return what you are looking for in your case. The
> script is also
> collecting other info to output the above results.
>
> Regards,
>
> Jim
>

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

  reply	other threads:[~2023-01-09 16:02 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 [this message]
2023-01-09 22:47             ` Jim
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=CAP+y1xCF5QGKaO4afGnkBapiYGnnyuoN2b4zHnM_QZy5vAy+_Q@mail.gmail.com \
    --to=pierpaolog@gmail.com \
    --cc=linuxtechguy@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).