From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] find/locate a file From: forsyth@caldo.demon.co.uk MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-sbytrbhilvmiznmwjecumtzyfm" Message-Id: <20001111160512.A1C6A199DC@mail.cse.psu.edu> Date: Sat, 11 Nov 2000 17:00:50 +0000 Topicbox-Message-UUID: 286e7cc0-eac9-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-sbytrbhilvmiznmwjecumtzyfm Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit for compiled executables, try src(1). in this particular case, however, the services are implemented by shell scripts. see listen(8) for details, but they are found in /rc/bin/service and /rc/bin/service.auth, in files named using an obvious naming scheme (eg, /rc/bin/service/tcp7). term% cat /bin/service/tcp7 #!/bin/rc /bin/cat so much for that one. others such as tcp25 invoke specialised commands with appropriate argument shuffling: term% cat /bin/service/tcp25 #!/bin/rc #smtp serv net incalldir user user=`{cat /dev/user} exec upas/smtpd -n $3 and then you can do src /bin/upas/smtpd to pop the source of the command into an acme frame, or use src -n just to print the name: term% src -n /bin/upas/smtpd /sys/src/cmd/upas/smtp/smtpd.c:71 --upas-sbytrbhilvmiznmwjecumtzyfm Content-Type: message/rfc822 Content-Disposition: inline Received: from tele-punt-22.mail.demon.net ([194.217.242.7]) by lavoro; Sat Nov 11 15:03:08 GMT 2000 Received: from punt-2.mail.demon.net by mailstore for forsyth@caldo.demon.co.uk id 973954289:20:00411:0; Sat, 11 Nov 2000 14:51:29 GMT Received: from psuvax1.cse.psu.edu ([130.203.4.6]) by punt-2.mail.demon.net id aa2127885; 11 Nov 2000 14:51 GMT Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.18.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 4C1D9199ED; Sat, 11 Nov 2000 09:51:09 -0500 (EST) Received: from pali.cps.cmich.edu (pali.cps.cmich.edu [141.209.131.81]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id E1C68199DC for <9fans@cse.psu.edu>; Sat, 11 Nov 2000 09:50:49 -0500 (EST) Received: from localhost (ishwar@localhost) by pali.cps.cmich.edu (8.9.3/8.9.3) with ESMTP id JAA18800 for <9fans@cse.psu.edu>; Sat, 11 Nov 2000 09:51:04 -0500 (EST) (envelope-from ishwar@pali.cps.cmich.edu) From: Ish Rattan To: 9fans@cse.psu.edu Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [9fans] find/locate a file Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0rc1 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the O/S Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Sat, 11 Nov 2000 09:51:04 -0500 (EST) Is there a way to find (discover the path) of a file in the source tree? For example, source for echo server running on port 7 (if the name is echo.c??). - ishwar --upas-sbytrbhilvmiznmwjecumtzyfm--