
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] cron and lftp problems
- Date: Wed, 26 Jan 2005 01:30:25 -0800 (PST)
- From: Jake Morrison <jake_morrison@example.com>
- Subject: Re: [tlug] cron and lftp problems
Hi Erin,
--- "Erin D. Hughes" <erin@example.com> wrote:
> Any thoughts on this would be appreciated. Thanks
The PATH for cron scripts is different from that of your interactive
shell.
Generally speaking, from a security standpoint, it is not a good idea
to
rely on the PATH for administrative scripts.
You should just hard code the path to the lftp command in the script,
e.g. /usr/bin/lftp -e ......
If you have some control over the server, you might be better off
with something like rsync running over ssh to mirror things.
Otherwise, you might use a real scriptable client like kermit.
> Erin
Regards,
Jake
Home |
Main Index |
Thread Index