From: Andy Cohen <Andy.Cohen () cognex ! com>
To: tru64-unix-managers
Subject: script to ftp files
Date: Tue, 03 Apr 2001 15:08:09 +0000 [thread overview]
Message-ID: <98631058518874.tru64-unix-managers.marc@archive.invalid> (raw)
Hi,
I'm trying to write a script to ftp files from an alphaserver to a sun box
that will run periodically through cron. I thought this would be easy but I
just can't get it to work. I've just about memorized the ftp man page.
Here's basically what I've tried:
echo starting ftp
ftp {sun_box}
{username}
{password}
{other ftp commands}
bye
I get errors in the log file along these lines:
starting ftp
+ ftp -ivt {sun_box}
Connected to {sun_box}.cognex.com.
220 {sun_box} FTP server (SunOS 4.1) ready.
Name (nova:oracle): 331 Password required.
530 Login incorrect.
Login failed.
221 Goodbye.
+ {username}
+ echo finished ftp
finished ftp
I tried putting all the commands into a .netrc file in $HOME on the Sun box.
What am I missing? Does anybody have a script that does this that they can
share with me? I've tried modifying the commands in all sorts of different
way all to no avail. I must be doing something incorrectly or leaving
something out.
Thanks!
Andy
reply other threads:[~2001-04-03 15:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox