Messages in this thread |  | | From | Matthias Urlichs <> | Subject | Re: /proc/self/fd/0 | Date | Wed, 25 Sep 1996 17:19:22 +0100 |
| |
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
|  |