LC_ALL for daemons

2004-04-30 Thread Joel Rees
I'm sure I've seen a thread on this, but a casual search didn't turn it up. (I'm always looking in the wrong places.) When I'm logged in as a user, I can set the appropriate environmen variables, but when a daemon is running, where is it going to get them? Joel Rees

comparison always false is a problem or not?

2004-04-30 Thread Joel Rees
My experience is that this kind of thing tends to lead to dead code or endless loops. Do I need to dig in and find the macro declaration and see if I can fix it? warning: comparison is always false due to limited range of data type regcomp.c:724 pp_sys.c:302 byterun.c:898 re_comp.c:724

Re: LC_ALL for daemons

2004-04-30 Thread Sherm Pendley
On Apr 30, 2004, at 2:24 AM, Joel Rees wrote: When I'm logged in as a user, I can set the appropriate environmen variables, but when a daemon is running, where is it going to get them? Daemons are started from scripts found in /System/Library/StartupItems (for Apple-provided daemons), or

Re: comparison always false is a problem or not?

2004-04-30 Thread Sherm Pendley
On Apr 30, 2004, at 2:30 AM, Joel Rees wrote: My experience is that this kind of thing tends to lead to dead code or endless loops. Do I need to dig in and find the macro declaration and see if I can fix it? warning: comparison is always false due to limited range of data type In my own

Re: comparison always false is a problem or not?

2004-04-30 Thread Joel Rees
On 2004.4.30, at 04:38 PM, Sherm Pendley wrote: On Apr 30, 2004, at 2:30 AM, Joel Rees wrote: My experience is that this kind of thing tends to lead to dead code or endless loops. Do I need to dig in and find the macro declaration and see if I can fix it?

Re: LC_ALL for daemons

2004-04-30 Thread Joel Rees
On 2004.4.30, at 04:30 PM, Sherm Pendley wrote: On Apr 30, 2004, at 2:24 AM, Joel Rees wrote: When I'm logged in as a user, I can set the appropriate environmen variables, but when a daemon is running, where is it going to get them? Daemons are started from scripts found in

questions from configure

2004-04-30 Thread Joel Rees
Okay, one more that had me curious, from the configure script -- vfork() found. Perl can only use a vfork() that doesn't suffer from strict restrictions on calling functions or modifying global data in the child. For example, glibc-2.1 contains such a vfork() that is

Re: LC_ALL for daemons

2004-04-30 Thread Sherm Pendley
On Apr 30, 2004, at 7:28 AM, Joel Rees wrote: Thanks. I needed that information, because I had forgotten that Mac OS X doesn't use the rc/* convention. Don't look like there are any hooks for an rc.local. An rc script for the daemon would be handy for setting an environment variable. Each

Re: questions from configure

2004-04-30 Thread Sherm Pendley
On Apr 30, 2004, at 7:29 AM, Joel Rees wrote: Okay, one more that had me curious, from the configure script -- vfork() found. Do you still want to use vfork()? [y] Do I take this to mean that Mac OS X (10.2.8) still doesn't have a proper fork for Perl's purposes? (for Perl 5.8.4) Dunno. I

backing up system

2004-04-30 Thread Joseph Alotta
Greetings, I try to back up my system once a week. I have a firewire disk drive that I use for this purpose. I have been using the Lacie software that came with it. Before Panther, I used to be able just to plug it in and run it under my own id. Now I need to log in as root to run it. Which

Re: backing up system

2004-04-30 Thread Jerry LeVan
I use DejaVu for periodic backing up of important folders. It runs as a preference panel, uses cron and psync. If you want to use cron and let your system go to sleep then you might want to take a look some of the stuff I have at http://homepage.mac.com/levanj/Cocoa. It turns out you have to

Re: backing up system

2004-04-30 Thread Chris Devers
On Fri, 30 Apr 2004, Jerry LeVan wrote: If you want to use cron and let your system go to sleep then you might want to take a look some of the stuff I have at http://homepage.mac.com/levanj/Cocoa. It turns out you have to do a little song and dance to make sure the mac is awake (for a long

Re: backing up system

2004-04-30 Thread Sherm Pendley
On Apr 30, 2004, at 4:36 PM, Jerry LeVan wrote: If you want to use cron and let your system go to sleep then you might want to take a look some of the stuff I have at http://homepage.mac.com/levanj/Cocoa. It turns out you have to do a little song and dance to make sure the mac is awake (for a

Re: backing up system

2004-04-30 Thread Jerry LeVan
Anacron does not appear to run cron jobs at at particular time, the dailyWakeup/keypress/cron combination can insure that the cron job is run on time. If you want, dailyWakeup can even restart the system to get going :) If you want a hands on approach PMQueueManager will allow you to schedule

Re: backing up system

2004-04-30 Thread Chris Devers
On Fri, 30 Apr 2004, Jerry LeVan wrote: Anacron does not appear to run cron jobs at at particular time Yeah, that's the whole point. The emphasis shifts from I want this maintainence script to run at 3:47 am every Sunday night to this maintainence script needs run once a week, preferably when

Re: backing up system

2004-04-30 Thread Joel Rees
Perhaps it's because I'm not strong on Perl yet, but I took a bit more of a naive view here -- On 2004.5.1, at 05:22 AM, Joseph Alotta wrote: Greetings, I try to back up my system once a week. I have a firewire disk drive that I use for this purpose. I have been using the Lacie software that

[non-perl] osx startup login items, was Re: LC_ALL for daemons

2004-04-30 Thread Chris Devers
On Fri, 30 Apr 2004, Sherm Pendley wrote: At system startup, items are sorted so that the ones that provide a given service are started before the ones that use or require it. Overall, I think it's a much more elegant system than the old numbered rc files scheme. That scheme always brings

Re: [non-perl] osx startup login items, was Re: LC_ALL for daemons

2004-04-30 Thread Sherm Pendley
On Apr 30, 2004, at 9:29 PM, Chris Devers wrote: I don't quite understand yet where things are going, but some of the startup items in 10.3 have been rewritten in such a way that the service is, when possible, not launched but primed such that that they're ready to use on demand but they aren't

Re: backing up system

2004-04-30 Thread Joseph Alotta
On Apr 30, 2004, at 4:58 PM, Jerry LeVan wrote: Yeah, but the person requesting advice say that he wanted the job to run at an off time since it tied the machine up for 40 minutes... It seems that with anacron, I would get into work bright and early, turn on my machine and it would be useless for

Re: backing up system

2004-04-30 Thread Joseph Alotta
(I just tried, for grins, under 10.2.8, su-ing to an admin user, then sudo-ing a sh to get a root shell without logging in as root, but open-ing /Applications/AppleWorks 6 as the root user didn't seem to do anything other than opening the /Applications directory in a GUI window. open-ing

Re: Access External Hard Drive - Local and Network

2004-04-30 Thread Chris Devers
On Fri, 30 Apr 2004, Mark Wheeler wrote: [snip] In the Volumes directory, it lists the following as the mounted folder: PRINCETON;DELLSERVER How do I get into the server? The pathway I tried is: /Volumes/PRINCETON;DELLSERVER/ That didn't work. These kinds of things are *always*

Re: Access External Hard Drive - Local and Network

2004-04-30 Thread Sherm Pendley
On Apr 30, 2004, at 11:54 PM, Chris Devers wrote: So, it's hard to say what you need to do without knowing what your code looks like, but bear in mind that Perl's rules for this kind of thing will be similar to what the shell is doing here. Not really. The semicolon is the end-of-statement marker

Re: Access External Hard Drive - Local and Network

2004-04-30 Thread Mark Wheeler
Hi, Thanks for the help. Below is the code and (although from memory) a listing of the /Volumes/ directory. /Volumes/: 10 GB Firewire Drive eDrive PRINCETON;DELLSERVER PRINCETON;DELLSERVER-1 PRINCETON;DELLSERVER-2 PRINCETON;DELLSERVER-3 And the perl code:

Re: backing up system

2004-04-30 Thread Chris Nandor
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Joseph Alotta) wrote: 1. Can iSync be used for backups? I'm not sure if I have iSync unless it is standard in Panther. Well, Apple's blurbs seemed to say such things, but I think, when I read the fine print, it was for backing up to

Re: Access External Hard Drive - Local and Network

2004-04-30 Thread Sherm Pendley
On May 1, 2004, at 1:08 AM, Mark Wheeler wrote: PRINCETON;DELLSERVER my $dirfrom = /Volumes/PRICETON;DELLSERVER/; Is that code copy-n-pasted? If it is, it's missing an 'N'. ;-) sherm--

Re: Access External Hard Drive - Local and Network

2004-04-30 Thread Mark Wheeler
Hi Sherm, Yes, it's copy-n-pasted! I can't believe I missed that! With that changed, does everything in the script look in order to function correctly? Or do I need to change it to /Volumes/PRINCETON\;DELLSERVER/; Thanks, Mark On Apr 30, 2004, at 10:30 PM, Sherm Pendley wrote: On May 1, 2004,

Re: Access External Hard Drive - Local and Network

2004-04-30 Thread Sherm Pendley
On May 1, 2004, at 1:37 AM, Mark Wheeler wrote: With that changed, does everything in the script look in order to function correctly? Or do I need to change it to /Volumes/PRINCETON\;DELLSERVER/; No, you're using Perl's built-in copy() function, so the back-slash isn't needed. It's only needed