Subject: RE: ftp scripts
From: Leif Sawyer (lsawyer@gci.com)
Date: Wed Jul 10 2002 - 11:04:02 AKDT
Mike Baker writes:
> Is there a mechanism to have an ftp script in linux like
> there is in Windows. I want to log into a number of
> computers to ftp some data extracts. I have batch files in
> windows that I can schedule and figure that there must be a
> way to do this in Linux also. In windows you pass a command
> file to ftp that it reads and then executes the commands in
> order. When I do a man ftp I don't see this option.
Use ncftpget in batch mode.
Or use wget.
#!/bin/sh
wget -q ftp://myftp.host.dom/pub/path/to/my/file.ext
if [ $? == 0 ];
then
echo success
else
echo failed
fi
works great..
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
This archive was generated by hypermail 2a23 : Wed Jul 10 2002 - 11:04:06 AKDT