Re: location of 'com.apple.versioner.perl'

2010-07-10 Thread Chris Devers
On Fri, Jul 9, 2010 at 6:42 AM, Packy Anderson  wrote:
> On Fri, Jul 9, 2010 at 6:39 AM, Alan Fry  wrote:
>
>> However for the life of me I cannot find the file
>> 'com.apple.versioner.perl.plist' on that machine. It is not in
>> /Library/Preferences. What am I missing?
>>
>
> Did you also look under ~/Library/Preferences?

It's ~/Library/Preferences/com.apple.versioner.perl.plist

Here's how you prove it, and any other questions like this:

1/ In one Terminal window, run `sudo filebyproc.d | grep -i plist`
2/ In another Terminal window, run the defaults command in question
3/ In the original window, hit ctrl-C to cancel, then examine the results.

Here's what filebyproc.d reported for me:

$ sudo filebyproc.d | grep -i plist
dtrace: script '/usr/bin/filebyproc.d' matched 3 probes
  1  18510   open:entry backupd-helper
/private/var/db/.TimeMachine.Results.plist
dtrace: error on enabled probe ID 1 (ID 19296:
syscall::open_nocancel:entry): invalid address (0x7fff5fc2dc7f) in
action #2 at DIF offset 24
  1  19296  open_nocancel:entry defaults
/Users/cdevers/Library/Preferences/com.apple.versioner.perl.plist.GWghJmY
  1  18510   open:entry mdworker
/Users/cdevers/Library/Preferences/com.apple.versioner.perl.plist
$

Tweak the grep filter as needed and you can use this trick to isolate
all kinds of weird "what file is that damned thing looking at" type
questions.


--
Chris Devers


Re: location of 'com.apple.versioner.perl'

2010-07-10 Thread Alan Fry


On 9 Jul 2010, at 18:27, Chris Devers wrote:

On Fri, Jul 9, 2010 at 6:42 AM, Packy Anderson > wrote:
On Fri, Jul 9, 2010 at 6:39 AM, Alan Fry   
wrote:



However for the life of me I cannot find the file
'com.apple.versioner.perl.plist' on that machine. It is not in
/Library/Preferences. What am I missing?



Did you also look under ~/Library/Preferences?


It's ~/Library/Preferences/com.apple.versioner.perl.plist

Here's how you prove it, and any other questions like this:

1/ In one Terminal window, run `sudo filebyproc.d | grep -i plist`
2/ In another Terminal window, run the defaults command in question
3/ In the original window, hit ctrl-C to cancel, then examine the  
results.


Tweak the grep filter as needed and you can use this trick to isolate
all kinds of weird "what file is that damned thing looking at" type
questions.


Thank you for this tip -- 'filebyproc.d' is a new one to me. One  
learns something everyday. Could be really useful, as you say, to find  
out who's doing what to whom.


I am still bothered about putting a 'Prefer-32-bit plist' on someone  
else's computer (via the installer) just for the sake of  
Mac::Processes. What if the owner prefers 64 bit...?


Alan



Re: location of 'com.apple.versioner.perl'

2010-07-09 Thread Packy Anderson
On Fri, Jul 9, 2010 at 6:39 AM, Alan Fry  wrote:

> However for the life of me I cannot find the file
> 'com.apple.versioner.perl.plist' on that machine. It is not in
> /Library/Preferences. What am I missing?
>

Did you also look under ~/Library/Preferences?

-packy

-- 
Packy Anderson

Email:  packyander...@gmail.com
GVoice: (646) 833-8832


location of 'com.apple.versioner.perl'

2010-07-09 Thread Alan Fry
A script using Mac::Processes failed on OS 10.6.3 because of a 64/32  
bit issue. Following the recommendations in 'man perl' I ran


defaults write com.apple.versioner.perl Prefer-32-bit -bool yes

which fixed the problem.

However for the life of me I cannot find the file  
'com.apple.versioner.perl.plist' on that machine. It is not in / 
Library/Preferences. What am I missing?


Secondly in a '.pkg' distribution for the script how should one manage  
the possibility the installation might be on either a 32 bit or 64 bit  
system? Is there any disadvantage in running that 'defaults' line  
(above) irrespective of the OS (and/or) Perl versions?


Suggestions would be most gratefully received.

Alan Fry