Re: how to simulate a user's crontab?

2008-07-21 Thread David Robillard
Actually, I highly recommend a Mac program called Yojimbo, that is a kind of general purpose memory tool. You can throw all sorts of information into it, and find it very easily when you need it. Fantastic program and I don't know of anything like it on other platforms. If you're looking for

Fwd: how to simulate a user's crontab?

2008-07-20 Thread John Almberg
I use templates for most of the things I write, so I don't end up making the same stupid off-by-one mistakes for things like handling command-line arguments. My template for a production shell script is below. You raise a lot of interesting ideas Karl. I too am always looking

Re: how to simulate a user's crontab?

2008-07-19 Thread Karl Vogel
On Thu, 17 Jul 2008 09:27:51 +0200, DA Forsyth [EMAIL PROTECTED] said: D John, it is not a permissions issue, but rather a path issue. Do as the D other poster suggested and run a cron job to dump the environment and you D will see that the PATH inside a cron job is very rudimentary. Either

re: how to simulate a user's crontab?

2008-07-17 Thread DA Forsyth
Date: Wed, 16 Jul 2008 11:26:19 -0400 From: John Almberg [EMAIL PROTECTED] I often run into permission problems with user crontabs. That is, a crontab run under a user's permissions. First of all, it seems to me that a user's crontab doesn't have exactly the same permission as the user

Re: how to simulate a user's crontab?

2008-07-17 Thread John Almberg
John, it is not a permissions issue, but rather a path issue. Do as the other poster suggested and run a cron job to dump the environment and you will see that the PATH inside a cron job is very rudimentary. Either add what you need to it in the crontab or cron job, or always use absolute paths

how to simulate a user's crontab?

2008-07-16 Thread John Almberg
I often run into permission problems with user crontabs. That is, a crontab run under a user's permissions. First of all, it seems to me that a user's crontab doesn't have exactly the same permission as the user himself. Is this true? If so, what permissions does a user's crontab have? Is

Re: how to simulate a user's crontab?

2008-07-16 Thread Bill Moran
In response to John Almberg [EMAIL PROTECTED]: I often run into permission problems with user crontabs. That is, a crontab run under a user's permissions. First of all, it seems to me that a user's crontab doesn't have exactly the same permission as the user himself. Is this true? The

Re: how to simulate a user's crontab?

2008-07-16 Thread John Almberg
I'm guessing you're having problems with environment settings, although the vagaries of the question don't give me much to go on (something along the lines of, when I try to do x in cron, I get the error y; but it works fine when the user runs it outside of cron would be more informative.)

Re: how to simulate a user's crontab?

2008-07-16 Thread John Almberg
On Jul 16, 2008, at 10:03 PM, John Almberg wrote: I'm guessing you're having problems with environment settings, although the vagaries of the question don't give me much to go on (something along the lines of, when I try to do x in cron, I get the error y; but it works fine when the user