<HTML><FONT FACE=arial,helvetica><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2">FWIW, there are definitely a fair number of scripts floating around which _are_ executable but don't have a file extension. For example, most open source project have a file named "configure". It should really be called "configure.sh" (and you'll see #!/bin/sh on the first line)... but, well, it isn't. On the other hand, I can't think of any binary executables that _do_ have extensions, but there's nothing stopping someone from creating one.<BR>
<BR>
I'm fairly sure you'll get good results if you 1) check the executable bit and then 2) examine the first few characters of the file to see if it is a script. If you're adverse to using #2 to identify executable script files, file extensions should work most of the time, but there's really no guarantee that files will be named appropriately.<BR>
<BR>
One thing to remember: if you try to peek at the first few bytes of files to find scripts, make sure you have read privileges on that file first.<BR>
<BR>
Also note that there are things such as ".dll" or ".a" or ".lib" which are all considered executables but don't really fit the "application" sense.<BR>
<BR>
<BLOCKQUOTE CITE STYLE="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px" TYPE="CITE"></FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2">That was the rule I was about to work with, but just to be safe: can you<BR>
think of any other file types in addition to apps that have no extension?<BR>
</BLOCKQUOTE></FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"><BR>
<BR>
<BR>
<BR>
<BR>
<BR>
------------------------------<BR>
Brian Yennie<BR>
Chief Technology Officer<BR>
QLD Learning, LLC<BR>
www.QLDLearning.com<BR>
<BR>
PH: (904)-997-0212<BR>
EMAIL: Yennie@aol.com<BR>
-------------------------------<BR>
</FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"></FONT></HTML>