Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!brl-adm!adm!dsg@mitre-bedford.arpa From: dsg@mitre-bedford.arpa (Dave Goldberg) Newsgroups: comp.unix.questions Subject: Re: A couple questions Message-ID: <7027@brl-adm.ARPA> Date: Tue, 21-Apr-87 13:13:06 EST Article-I.D.: brl-adm.7027 Posted: Tue Apr 21 13:13:06 1987 Date-Received: Wed, 22-Apr-87 03:57:30 EST Sender: news@brl-adm.ARPA Lines: 15 > I would believe that a pretty sure >method would be to test the file >permisions, if an "x" accours in the >file permisions, then it is executable, >other wise its text. If only it were that easy. However, I can make any text file have permission of 755 (rwxrwxrwx) and still be a pure ascii file. This is even useful in the case of shell scripts. Dave Goldberg dsg@mitre-bedford.arpa Disclaimer: for this you want a disclaimer!?!