1. Programming simple file copy, move, and other file mngmnt routines
I am trying to find out if there is a fairly simple way to
do the impliment the following functions (anywhere you see
file below, realize that it could be a directory as well):
Delete: Delete a given file.
Copy: Copy a source file or directory to a destination
Move: As above, only moving. Could be implimented as
a Copy() then Delete().
Chmod: Change the attributes on a given file.
Touch: Update a file's last access time, creating an empty
file if necessary.
Check: Find out if a file is a regular file, a directory,
a symbolic link, etc.
Unfortunately, I don't have access to a UNIX programming book
and I can't find anything regarding this stuff on the
'net. Regarding Copy(), I look at the GNU sources for 'cp'
and got lost really quickly. I am hoping for something
closer to the Window's API call CopyFile() if it exists or
a 10-20 line set of code that impliments something like
If worse comes to worse, I could do a system("cp ...")
call if I had to, but I would rather not create another
process if I can help it (not to mention our debugger
chokes stepping across system() calls).
Pointers and help would be greatly appreciated. If you
know of a book that can answer my questions, that would
be great, too. WWW sources are always wonderful.
Viewpoint Datalabs International, Inc. Phone: 801-229-3189
If you eat a live frog in the morning, nothing worse will happen to
either of you for the rest of the day.
2. Nameservers on colocated Linux servers
3. modules not automatically loaded + only have sound for WAV file (sound problem)
4. Console locking?
5. Can not download mails with attachements... sounds simple?!
7. Windows 2000 NOT moving into the household moving business
8. Xconfig for Diamond SpeedSTAR
9. '.forward' moves mail !!!; anything that copies and not MOVE?
10. simple banner printing not so simple
11. Linux will not allow me to move files over via FTP?
12. whereis does not work on moved files
13. Making room, which dirs/files may "not" be moved from /usr ?