|
I imagine Kirk hit the nail on the head.
All of my scripts have the username and pwd on the same line, example:
FTP ACCESS
Dave Reiher
System Analyst
Prairie Farms Dairy - Corporate
dreiher@xxxxxxxxxxxxxxxx
kirkg@xxxxxxxxxxxxx
Sent by: midrange-l-bounces@xxxxxxxxxxxx
12/22/2005 09:42 AM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
To
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
cc
Subject
Re: Setting up FTP Job
Like Michael has said check SPSOBJ/FTPLOG MBR(OUT2) for your Ftp messages.
I have also found that sometimes the user ID and password have to be on
the same line with a space between them instead of being on separate
lines of the script.
_____________________
Kirk Goins CCNA
Systems Engineer, Manage Inc.
IBM Certified i5 Solution Sales
IBM Certified iSeries Solutions Expert
IBM Certified Designing IBM e-business Solutions
Office 503-353-1721 x106 Cell 503-577-9519
kirkg@xxxxxxxxxxxxx www.manageinc.com
There are 10 types of people in the world:
Those that understand binary, and those that don't.
"Brian Piotrowski" <bpiotrowski@xxxxxxxxxxxxxxx>
Sent by: midrange-l-bounces+kirkg=manageinc.com@xxxxxxxxxxxx
12/22/2005 06:12 AM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
To
"Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
cc
Subject
Setting up FTP Job
Thanks to everyone who helped me yesterday with connecting to our FTP
site using our AS/400.
I'm in the middle of writing an automated script to download the data
from our site on a timely manner. Here's the current CLP:
PGM
OVRDBF FILE(INPUT) TOFILE(SPSSRC/QCLSRC) MBR(FTPAFON2)
OVRDBF FILE(OUTPUT) TOFILE(SPSOBJ/FTPLOG) MBR(OUT2)
PLANT2: FTP RMTSYS('192.168.0.100')
MONMSG MSGID(CPF0000) EXEC(DO)
SNDUSRMSG MSG('AFON P1 was not done normally as +
"FTP" command.') MSGTYPE(*INFO) +
TOMSGQ(QSYSOPR)
ENDDO
END: ENDPGM
In my FTPAFON2 script, I have the following:
<username>
<password>
locsite namefmt 1
lcd /home/AFON
get BOS2.TXT (REPLACE
QUIT
I compiled the CLP and ran it, but it doesn't appear to do anything
useful, and I'm not exactly sure where the problem exists. I checked
the job log, but it doesn't give me any useful information.
Does anyone have any ideas?
Incidentally, when I log into the FTP site, it has this information:
UNIX Type: L8 Version: BSD-44. Do I need to add some type of pause in
my script to allow for the prompts?
Thanks!
Brian.
-=-=-=-=-=-=-=-=-=-=-=-=-=-
Brian Piotrowski
Specialist - I.T.
Simcoe Parts Service, Inc.
PH: 705-435-7814
FX: 705-435-6746
-=-=-=-=-=-=-=-=-=-=-=-=-=-
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.