From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] tip'o'day -- hack Date: Fri, 22 Apr 2005 00:07:19 +0100 From: rog@vitanuova.com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 3f8117f4-ead0-11e9-9d60-3106f5b1d025 that reminds me of a similar little thing: if you want to pipe into or from a remote command, you can do something like: % echo hello |[3=1] cpu -c 'wc < /mnt/term/fd/3 > /mnt/term/fd/1' | tr '0-9' X X X X % (note that you can't use /mnt/term/fd/0 for stdin because that's exportfs's input - the network connection itself) [aside: actually, i'm not sure why cpu needs to open /mnt/term/dev/cons; if it always did something like the above, then cpu would be even more seamless than it is as it is, if you don't have a local /dev/cons (e.g. running when from a cron job) you have to manufacture one. ]