|
#1
| ||||
| ||||
| I have a program that will continue to run even after you have logged out, and runs under all the users accounts. It needs to be able to access it's log at all times, so having the log saved in an admins prefs directory isnt going to work when you log in as a normal user, because it wont have permission to access it. What I'm looking for is an invisible directory (so it doesn't clutter up the users computer with yucky looking files) that I can save a text log into, and be able to expect read/write access to under all permission levels. Like /etc or /usr. What is a good invisible, public folder that I can put a log into?
__________________ Toads are not the superiour species |
|
#2
| ||||
| ||||
| /tmp It exists for the exact reason you want. Brian
__________________ UNIX is simple and coherent, but it takes a true genius (or a programmer at any rate) to understand and appreciate its simplicity -- Dennis Ritchie |
|
#3
| ||||
| ||||
| Thankyou very much btoneill. That completely cleared it up ![]()
__________________ Toads are not the superiour species |
|
#4
| ||||
| ||||
| Another question, hopefully someone will know the answer to: I need a folder to save the real log in, one that is easy for everyone to access and all users will have read and write permissions to. I considered using /Documents, which looked ot be a public documents folder (just what I wanted) but you can just delete it, so a lot of people wont have it. Any other ideas? If not, anyone know the C function to create directorys so I can ensure that it IS there?
__________________ Toads are not the superiour species |
|
#5
| ||||
| ||||
| The C function is mkdir. Half the time if you can't figure out the name of a C call, but know the unix command to do it, it's probably the same name as the unix command ![]() Brian
__________________ UNIX is simple and coherent, but it takes a true genius (or a programmer at any rate) to understand and appreciate its simplicity -- Dennis Ritchie |
|
#6
| ||||
| ||||
| Quote:
![]() Sorry about that :P Now that I have done all that, I have just remembered that there is a "Logs" folder in /Library. Might as well use that then :P
__________________ Toads are not the superiour species Last edited by havic; January 13th, 2004 at 12:10 AM. |
![]() |
| Thread Tools | |
|
|