* script to ftp files
@ 2001-04-03 15:08 Andy Cohen
0 siblings, 0 replies; only message in thread
From: Andy Cohen @ 2001-04-03 15:08 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-04-03 15:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-03 15:08 script to ftp files Andy Cohen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox