From: Neal Becker <nbecker@fred.net>
To: linux-kernel@vger.kernel.org
Subject: pty question [OT]
Date: Sat, 14 Jun 2003 20:25:52 -0400 [thread overview]
Message-ID: <bcge5p$gkt$1@main.gmane.org> (raw)
I suppose this isn't exactly specific to linux kernel. I have some programs
running at work, each writing results to stdout. Each is running within a
shell within some type of xterm-like device. I want to be able to check on
the results from home.
I know if I had thought about it in advance, I could use screen, or even
xemacs/gnuclient.
I'm wondering if I can get anything by looking at /proc/pid/fd/.
For example, I'm running top and I see:
ls -l /proc/5012/fd/
total 0
lrwx------ 1 nbecker nbecker 64 Jun 14 20:24 0 -> /dev/pts/2
lrwx------ 1 nbecker nbecker 64 Jun 14 20:24 1 -> /dev/pts/2
lrwx------ 1 nbecker nbecker 64 Jun 14 20:24 2 -> /dev/pts/2
lr-x------ 1 nbecker nbecker 64 Jun 14 20:24 3 -> /proc/uptime
lr-x------ 1 nbecker nbecker 64 Jun 14 20:24 4 -> /proc/stat
lr-x------ 1 nbecker nbecker 64 Jun 14 20:24 5 -> /proc/loadavg
lr-x------ 1 nbecker nbecker 64 Jun 14 20:24 6 -> /proc/meminfo
I guess the problem is I can't find any documentation on devpts. Maybe if I
could find some I'd be able to figure out a device I could open to peek at
the stdout of a process?
reply other threads:[~2003-06-15 0:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='bcge5p$gkt$1@main.gmane.org' \
--to=nbecker@fred.net \
--cc=linux-kernel@vger.kernel.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.