lkml.org 
[lkml]   [1996]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: /proc/self/fd/0
Date
In linux.dev.kernel, article <Dy8xGn.A2o.0.omega-3@interaccess.com>,
rnichols@interaccess.com (Robert Nichols) writes:
>
> In article <Pine.LNX.3.94.960923170043.12594B-100000@nebland.cnweb.com>,
> Allen D. Harpham <aharpham@cnweb.com> wrote:
> :
> :#!/bin/sh
> :ln -s /proc/self/fd/0 /tmp/$$.html
> :/usr/bin/html2ascii/html-to-ascii.pl /tmp/$$.html|pr
> :rm /tmp/$$.html
>
> I don't see how that ever worked. Try changing the link to
> ln -s /proc/$$/fd/0 /tmp/$$.html
> ^^
> In the original, the link doesn't resolve to the same place for the
> child process as it does for the parent shell since "self" has changed.
>
But that should not matter because /proc/self/fd/0 is the same file
descriptor (stdin, after all, is inherited from the shell).

--
It's a small world, but I wouldn't want to have to paint it.
-- Steve Wright
--
Matthias Urlichs \ noris network GmbH / Xlink-POP Nürnberg
Schleiermacherstraße 12 \ Linux+Internet / EMail: urlichs@noris.de
90491 Nürnberg (Germany) \ Consulting+Programming+Networking+etc'ing
PGP: 1024/4F578875 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE
Click <A HREF="http://info.noris.de/~smurf/finger">here</A>. 42

\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.033 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site