Batch files and UNIX

John Heard jheard at bey.com
Wed Jan 14 17:27:41 EST 1998


Hi Nathan,

WS_FTP from www.ipswitch.com allows batch commands like what you're wanting
to do. 

Best regards,

John

At 02:16 PM 1/14/98 -0800, Robert Rasmussen wrote:
>On Wed, 14 Jan 1998, Nathan Schwartz wrote:
>
>> Simple question...
>> 
>> I want to write a batch file to put one file on an FTP site. The batch file
>> connects to the site but then it won't enter the name or password or
>> anything....  it just stops. Once I exit the site, the rest of the batch
>> file runs, but the commands seem only to be run when the system is at the
>> DOS prompt.
>> 
>> FTP 100.200.300.100
>> name
>> password
>> put c:\files\text.dat
>> quit
>
>It's funny you should mention that...
>
>You are right, this WON'T work. The FTP.EXE will not receive keyboard input
>from the following lines in the batch string. DOS doesn't work like that.
>However, many DOS commands will work with redirected input. I just tried:
>   ftp somehost < ftpcmd
>where ftpcmd is a text file containing:
>   username
>   get filename
>   quit
>
>(You'd want "put", not "get"). 
>
>It WON'T work with the password -- FTP always prompts for the password, if
one
>is required by the host.
>
>We are working on a pair of command-line driven ftp programs, that would
allow
>you to do:
>   ftpput username:password at hostname/filename
>
>Anyone interested?
>
>Regards,
>...Bob Rasmussen,   President,   Rasmussen Software, Inc.
>
>personal e-mail: ras at anzio.com
> company e-mail: rsi at anzio.com or sales at anzio.com or support at anzio.com
> ftp://ftp.anzio.com               voice: 503-624-0360
>http://www.anzio.com                 fax: 503-624-0760
> 


More information about the Web4lib mailing list