Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
How determine executable file-type
Name: zappsweden Date: March 31, 2003 at 07:39:30 Pacific OS: Red Hat 8 CPU/Ram: P2-350MHz
Comment:
With "man stat" i found alot of functions to use for determining file types. However, I did not find any information about determining if a file is an executable.
Where do I find such a function? I have already searched the man pages for execv, execl, ... but with no success.
Name: Jake Date: March 31, 2003 at 07:58:13 Pacific
Reply:
Use the file command.
0
Response Number 2
Name: zappsweden Date: March 31, 2003 at 09:28:08 Pacific
Reply:
Oops, i forgot to mention that I must do it (assignment about doing a program simulating the ls command) with the C-language, not by using shell commands.
For example, I did use the S_ISDIR(m), from stat(2) in the manual section, to determine if a file was a directory.
Summary: Does anyone know what file type is igz. I believe it is an image type from a floppy for example. The Ultimate Boot CD uses them and I can't find anywhere how or what creates these file types. I am mo...
Summary: Hi: I have connected two computers in Linux together using the ethernet card. I tried to ping from each computer, they have been working so far. But I wonder how to transfer files between these ...