<HTML><FONT FACE=arial,helvetica><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2">All these things considered, the only _true_ sign of an executable is the executable flag on the file. The rest of the suggestions may help, but I don't believe they will ever be 100% reliable. UNIX simply doesn't have a distinction between executable and application. When it really comes down to it, I can create any file with any name and any extension, type in "chmod +x myFileName", and it will look just as executable as any other file can.<BR>
<BR>
Unless you can find an effective way to look inside the contents of the files, nothing from the file's name or permissions will be a guarentee that it's the equivalent of an application.<BR>
<BR>
Everything else would really be a hack to get "application-style" executables to list.<BR>
<BR>
Perhaps I'm missing something, but I think the reason this one can't get ironed out without some kinks is simply that UNIX doesn't have the same idea of apps as the more "user-friendly" OSes.<BR>
<BR>
I'd still say check the executable permission for sure, and then maybe consider peeking at the first line of the file to filter out scripts. It still won't be perfect, but at least you'll get a superset of what you are looking for.<BR>
<BR>
HTH<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>