I believe that you have to use the '-n' parameter on the ftp command to use
the user and pass subcommands in your script.

Example: ftp -n -s:ftp_script as400.machine.com


Guy Murphy - FACTS Systems
University of Illinois
217-333-8670
murphyfa@uiuc.edu


-----Original Message-----
From: bclark@ussafety.com [mailto:bclark@ussafety.com]
Sent: Monday, December 14, 1998 2:50 PM
To: Midrange-L
Subject: FTP scripting


This might be a little off topic but here goes.  I am trying to automate
the download of some files from the AS/400 using FTP.  I chose FTP
because I don't see the need to chew up a Client Access license for this
application.  I am having problems logging on to the AS/400 FTP server
using a text file as a script.  I keep getting invalid command messages
when I attempt to use the USER and PASS subcommands.  I have tried this
using the Windows NT 4.0 FTP client as well the Windows '95 client.

the script looks something like this:
open 254.254.254.254
USER user
PASS password
cd/qdls/folder
lcd f:\directory
get test.txt
quit

Can anybody tell me where I am going wrong?
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.