Re: ftp script question

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Paul R. Sadowski (xpert_at_mailshell13.mailshell.com)
Date: 05/13/04


Date: Thu, 13 May 2004 10:43:25 -0400


"walid faroun" <walid.faroun@eds.com> wrote in message
news:c95c01c438f5$ae946400$a501280a@phx.gbl...
>I have a simple ftp script such as the following
> ftp -ivn
> open ipaddres
> user username password
> cd /somedir
> mget *
> bye
> My question is that this scrip work fine from the command
> line, but if I run as a batch job I get to the ftp prompt
> command line waiting for command. What do I need to make
> it work. Thanks for the help in advance.

in the batch file do something like
ftp -ivn -s:c:\myftpscript.txt

where myftpscipt.txt contains the commands for the ftp session.



Relevant Pages

  • Re: FTP PUT with Store Unique
    ... years ago but had totally forgotten - I appreciated that the STOU command is ... covers the point I want to make which is that the FTP client commands are ... An SUNIQUE command compatible ...
    (bit.listserv.ibm-main)
  • Re: FTP PUT with Store Unique
    ... The best list for topics related to the Communications Server IP ... command or vice versa. ... Instructs the FTP client not to include a name with the STOU ... -- If NONAME is in effect, no name string specifying a foreign_file value follows ...
    (bit.listserv.ibm-main)
  • Re: FTP PUT with Store Unique
    ... a date/time stamp into the name before the FTP step. ... I foolishly assumed when I saw the SUnique parameter that - of course! ... command or vice versa. ... -- If NAME is in effect, the name string specifying a foreign_file value ...
    (bit.listserv.ibm-main)
  • Re: Problem about Window Xp SP2 firewall and the buildin FTP command
    ... I copy your example ftp command file to a.txt saved in C:\dell folder. ... I cannot turn off Windows Firewall, since it is controlled by Domain ...
    (microsoft.public.windowsxp.general)
  • [NT] Multiple Vulnerabilities Found in PlatinumFTPserver
    ... A vulnerability in the product allows remote attackers to cause the server ... to traverse into directories that reside outside the bounding FTP root ... delete files and perform a DoS attack on the server. ... 200 PORT command successful ...
    (Securiteam)