[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: cron job ftp script

You could do something with perl quite easilly.  For instance:

use Net::FTP;
$ftp = Net::FTP->new("<ip>");


-----Original Message-----
From: owner-misc@openbsd.org [mailto:owner-misc@openbsd.org]On Behalf Of
Jesse Trucks
Sent: Friday, September 10, 1999 11:47 AM
To: misc@openbsd.org
Subject: cron job ftp script

I have a script that uses .netrc to automate some FTP processes. It works
well when run manually on the command line, but it chokes on the login
when run as the same user from cron. It appears to not be using the .netrc
login info at all. Anyone have an idea how to get around this? If there is
a way to reprogram the shell script to accomplish the same task it can be
done as well.


Jesse Trucks
Online Technical Producer
Madison Newspapers, Inc. - http://www.madison.com