image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old January 12th, 2004, 05:57 PM
havic's Avatar
Windsurfer Nerd
 
Join Date: Jan 2004
Location: Auckland, NZ
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
havic is on a distinguished road
Question Good public folder to save temp logs?

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
Reply With Quote
  #2  
Old January 12th, 2004, 06:04 PM
btoneill's Avatar
keeper of the cheese
 
Join Date: Jul 2002
Location: Minneapolis, MN
Posts: 797
Thanks: 0
Thanked 0 Times in 0 Posts
btoneill is on a distinguished road
/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
Reply With Quote
  #3  
Old January 12th, 2004, 07:27 PM
havic's Avatar
Windsurfer Nerd
 
Join Date: Jan 2004
Location: Auckland, NZ
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
havic is on a distinguished road
Thankyou very much btoneill. That completely cleared it up
__________________
Toads are not the superiour species
Reply With Quote
  #4  
Old January 12th, 2004, 07:42 PM
havic's Avatar
Windsurfer Nerd
 
Join Date: Jan 2004
Location: Auckland, NZ
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
havic is on a distinguished road
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
Reply With Quote
  #5  
Old January 12th, 2004, 10:37 PM
btoneill's Avatar
keeper of the cheese
 
Join Date: Jul 2002
Location: Minneapolis, MN
Posts: 797
Thanks: 0
Thanked 0 Times in 0 Posts
btoneill is on a distinguished road
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
Reply With Quote
  #6  
Old January 13th, 2004, 12:05 AM
havic's Avatar
Windsurfer Nerd
 
Join Date: Jan 2004
Location: Auckland, NZ
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
havic is on a distinguished road
Cool

Quote:
Originally Posted by btoneill
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
Yes I knew about the Unix funct, and normally I would have just used man to find if there was a C equivelant. I figured there was no C function because man said there was no entry. I just realised I was searching section 3, not 2, which is why it said there was no entry

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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 08:57 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.