[EMAIL PROTECTED] wrote:
> 
> On Wed, Mar 28, 2001 at 12:24:02PM -0600, David Douthitt scribbled:
> > > Bummer...I now have to change my rsync script again.
> >
> > Just change your script to contain something like this:
> >
> > ---snip---
> > LEAF=/home/groups/l/le/leaf
> > ---snip---
> >
> > ...then, whenever it changes, you can just change one item and you are
> > all set.
> 
> Actually, I lied; my rsync commands live directly in my crontab.
> 
> You can't define variables in crontab, can you? Maybe you can
> define default variables for [sh? bash? whatever shell cron
> uses to interpret commands] and they will be inherited by the
> crontab...

I'd make them a script so as to make it easy for changes like this -
plus then, you can put in bulletproofing, logging, debugging and
more...

I don't believe cron uses a shell; it runs the command with somewhere
on the order of FOUR environment variables set (PATH, HOME, ...)  If
you want to set environment variables, you probably should use a
script.

_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to