[Veritas-bu] Automation of FTP via command line
2002-07-24 08:51:26
Subject: |
[Veritas-bu] Automation of FTP via command line |
From: |
ron AT linux DOT ca (Ron Lyman) |
Date: |
Wed, 24 Jul 2002 08:51:26 -0400 (EDT) |
Hi John,
Use the -s switch with Windows' built-in ftp command. Here is a couple of
lines from my "daily" script, which runs on Windows:
IF NOT %newup% == %oldup% (
MKDIR c:\temp\upgrade.tmp
ftp -s:"c:\utils\scripts\getUpg.ftp"
The file "c:\utils\scripts\getUpg.ftp" contains:
open virusupdates.hq.moen.com
anonymous
OK.get.upgrade
prompt
bin
lcd c:/temp/upgrade.tmp
cd /pub/VirusScan/AutoUpgrade
mget *
close
quit
HTH,
Ron Lyman
Network Support
Moen Incorporated
(905) 829-3400 x 253
On Wed, 24 Jul 2002, John Pyle wrote:
> I have found many scripts for Unix to automate FTP transfers between
> servers but would like to accomplish the same between a Windows
> workstation and a Unix server.
> I would like to initiate this from the Windows side with a bat file. I
> have found applications that will allow this but I wish to set this up
> to run automatically via an AT job. Am I wrong in thinking that there
> must be a command line that will allow remote login and retrieval of
> files?
|
|
|