Net::FTP problems getting files from Windows FTP server, but not Linux FTP Server.
I have a perl script (I didn't write) running on HP-UX that gets .zip
files from a Linux ftp server. It downloads the files and unzips
them. Every thing works fine. My problem is if I try to use the same
script on the same HP-UX box but try to get the (same) files from a
Windows ftp server. The files download fine, but when it tries to
unzip them, I get the following:
error [20040623064641.zip]: missing 273 bytes in zipfile
(attempting to process anyway)
error [20040623064641.zip]: attempt to seek before beginning of
(please check that you have transferred o...FTP Problem from AS400 to Windows server 2003 IIS 6.0
we use to transfert files from AS400 to Windows server 2003 and it
works fine with files size <= 1 meg. But sometimes we have to transfert
files size between 10 to 20 megs. It works very well, it means it
transfered the data but we never receive the confirmation from the
remote host ( server window 2003 )here is the log :
"Enter an FTP subcommand.
put mebug mebugp (file size 1 meg)
227 Entering Passive Mode (10,129,113,249,19,142).
125 Data connection already open; Transfer starting.
226 Transfer complete.
920808 bytes transferred in 4.904 seconds. Transfer rate 187.755 KB
Enter an FTP subcommand.
put mesoup mesoup(file size is 16meg)
227 Entering Passive Mode (10,129,113,249,19,143).
125 Data connection already open; Transfer starting.
No response from remote host; all connections closed."
What we must do!!!! please
Look at your CHGFTPA settings. Also, are these bat files your running
or some kind of script, does it have delays in it maybe.
...FTP between AS400 and windows server
I'd like to execute a bat file which is on my windows server from my
AS400 with an ftp command.
Is it possible and if yes which command should I enter on my AS400.
If you have CA/400 loaded on the server I think you can use RUNRMTCMD to run
a job on the Windows server.
If you're open to a commercial solution, take a look at our iSeries Office
You can run PC jobs, execute MS Word mail merges, launch web sites and more.
RJS Software Systems Inc.
"The AS/400 and iSeries Report and Data Delivery Experts"
Web Site: http://www.rjssoftware.com
"zebute" <email@example.com> wrote in message
> I'd like to execute a bat file which is on my windows server from my
> AS400 with an ftp command.
> Is it possible and if yes which command should I enter on my AS400.
> Best regards,
DO "toto.txt" with
open namesys or ip adress
user xxxx >>> syntax of user and pass no sure see ftp documentation
After you call in dos command : FTP toto.txt
Tomorrow i send one exemple
"zebute" <firstname.lastname@example.org> a �crit dans le message de
> I'd like to execute a bat file which is on my windows server from my
> AS400 wi...FTP to AS400
I have an old(ish) AS400 that i have installed at home on a LAN. i have
(now) managed to connect it to the network, but am unable to transfer
files to it via FTP. the FTP server is up and running on the 400, and
will allow me to login, but no matter what FTP command i try and enter
(on the pc FTP client), i always get the message:
501 unknown extension in database filename.
this means, i can't effectively do anything (via) FTP with the box. i
have a savf i desperately need to transfer to the box, but seem unable
to do so.
also, someone told me i should be able to get windows explorer to see
the 400 as a network drive. how do i go about doing this?
mt pc is running windows 200.
does anyone have any ideas as to what the problem might be???
It would be helpful to know what command you are entering when doing
the FTP and where it's failing. However from the error, it seems you
have at least managed to logon through FTP so:
First, create the SAVF on the AS/400.
i.e. CRTSAVF mylib/mysavf
QUOTE SITE NAMEFMT 0
PUT <savf name> mysavf
The 1st line shouldn't be necessary if you type the CD bit in first.
tried that and now get the error::
425 not able to open data connection.
when i try and 'put' the savf.
also if i don't type "quote site namefmt 0" first, then i can't even
change the library!
the full FTP is:
ftp> cd myl...FTP from Unix to AS400 to EDI Server
I have been working on an FTP issue that is driving me nuts. And of
course it is one that is out of the ordinary.
A client sends us a file to the ISeries that is in a Data Stream which
uses the IFS. I then send it down to our EDI server where they are
supposed to edit it. (I just work here). They then send me the
results which I forward back to the client. The problem is that when
I send it binary, it adds low values to the end of the file which both
Aetna and our EDI group can't handle. If I send it ASCII then I have
a limit of 32,766 bytes. I've tried using the TRIM command with no
put /qsys.lib/kwmlib.lib/testfile.file/testmbr.mbr testfile
This example gives me the low values are spaces at the end. Any help
would be appreciated.
email@example.com (Ken) wrote in message news:<firstname.lastname@example.org>...
> I have been working on an FTP issue that is driving me nuts. And of
> course it is one that is out of the ordinary.
> A client sends us a file to the ISeries that is in a Data Stream which
> uses the IFS. I then send it down to our EDI server where they are
> supposed to edit it. (I just work here). They then send me the
> results which I forward back to the client. The problem is that when
> I send it binary, it adds low values to the end of the file which both
> Aetna and our EDI group can't handle. If I send it ASCII then I have
> a limit of 32,7...ftp.dante.de shut down due to security problem with ftp server program.
A serious bug has been detecetd in proftpd:
As a consequence, ftp access to ftp.dante.de a.k.a. dante.ctan.org will be
disabled, effective immediately. http or rsync access to dante.ctan.org are not
Service will be resumed only after this bug is corrected.
For the CTAN Team
On 02/11/2010 08:57, CTAN Announcements wrote:
> A serious bug has been detecetd in proftpd:
> As a consequence, ftp access to ftp.dante.de a.k.a. dante.ctan...FTP Problems, FTP Freezes
I wrote about this a little while ago, but still haven't been able to
figure it out
I am having a problem using FTP on Windows XP. It freezes up with any
FTP client i use. I have tried passive mode. I have tried using
ZoneAlarm as my firewall, and the Microsoft one. I have tried opening
up all FTP ports, both UDP and TCP. The crazy thing is, at home it
only freezes up with files/directories that are 7 characters long.
on commands like:
Also, I have had the problem of it freezing up on another XP machine i
used at work.
H...AS400 FTP, can you launch a bat file on W2K3 server
If so, how??
On Jan 26, 3:48 pm, "jacko" <jkings...@cityofnorthport.com> wrote:
> If so, how??
STRPCCMD PCCMD('C:\your directory\batch file name.bat') PAUSE(*NO)
How does it now to which IP address and or server name to route to the
On Jan 26, 4:56 pm, "Falco" <cwhit...@hotmail.com> wrote:
> On Jan 26, 3:48 pm, "jacko" <jkings...@cityofnorthport.com> wrote:
> > If so, how??STRPCO
> STRPCCMD PCCMD('C:\your directory\batch file name.bat') PAUSE(*NO)
STRPCO implies that it is run from with an iSeries Access session on
the specific server or workstation.
If this is not possible you should either persue the RUNRMTCMD command
(also needs iSeries Access loaded) or consider changing the way your
app works so that you trigger the iSeries commands from within a
program or script on your Windows Server. Either way you need to read
up on iSeries Access (previously known as Client Access)
One way you can do this from the Server is to FTP into the iSeries and
in addition to any PUT or GET commands use QUOTE RCMD to run programs
on the iseries
put mpcfile.txt mylibfile.file
quote RCMD call mylib/mypgm
get myoutput.file mpcoutput.txt
Is there a way to remotely run a script via FTP on a W2K3 box.
On Jan 27, 7:01 am, "Brad" <smjbrads...@yahoo.co.uk> wrote:
> STRPCO implies that it is run from with an iSeries Access session on
> the specif...FTP SSL problems with large files, no problem with standard FTP
We are having issues receiving large files over SSL FTP connections on
our iSeres(AS/400) FTP server, but when we send the same file through
standard FTP (non-SSL) it works fine. The file is about 250 meg.
From what I can gather when I connect to the FTP Server with out SSL,
all data and the initial connection is pumped over a single port.
When I transmit using a SSL FTP connection to the iSeries I notice
that there is an initial connection but when I do my PUT another
connection (port) is opened between my FTP client software and the
iSeries FTP server and this the connection the data is pushed
through. I have a theory that my base connection which I think is
essentially idle while the PUT is happening is actually timing out due
to inactivity. Before do the PUT command we issue a:
TIME 14400 14400
This is suppose to set the time out for inactivity and transfer time
to 4 hours, and the response we get from the iSeries makes me believe
that is happening. We also have not problem sending files with
secure FTP that are like 1 or 2 meg. But for big files it just stops
Has anyone else had any issues like this or any suggestions? It would
appreciate any help.
On May 28, 9:08=A0am, think...@gmail.com wrote:
> We are having issues receiving large files over SSL FTP connections on
> our iSeres(AS/400) FTP server, but when we send the same file through
> standard FTP (non-SSL) it works fine. =A0The file is about 250 meg.
> Fr...FTP from HP3000 to external FTP servers.
3)=20And=20we=20can=20read=20the=20file=20from...FTP : Time problem (net/ftp)
I tried to get down with some ftp stuff and got stuck-up at this:
Using net/ftp, When I try running ls or list methods I get the
directory listings detailing everything including "modified time" BUT
with missing year information.
But when i tried the same stuff with the 'chilkat' ftp module , the
listing included the elusive 'year' information.
1. Is there any way in RUBY to get the modified time (except the mdtm
because that DOES NOT work on the ftp server in question).
On a second note how did the chilkat guys do it and if they can
perh...PC FTP to AS400
My VB .net application used to work now it doesn't, nothing has changed
with the application. I FTP long file names (or used to) to our AS400
but since last Wednesday I get this "Specified object name too long,
limit is 10 characters: LINE20050219." message.
The filename I was sending was LINE20050219_000000.txt so I'm not sure
why LINE20050219. is in the error message. The commands being executed
are as follows:
I am (and have been) using an FTP .DLL that has an uploadfile procedure
and the only parameter to pass is file name. The .dll issues the raw
FTP commands hence the STOR command vs a put.
Hopefully someone can shed some light on what may all of a sudden be
thanks in advance for any help
Jerry, look in your IFS at the security on your other LINE text files.
What happens if you run this manually from the PC, same results??
> My VB .net application used to work now it doesn't, nothing has
> with the application. I FTP long file names (or used to) to our AS400
> but since last Wednesday I get this "Specified object name too long,
> limit is 10 characters: LINE20050219." message.
> The filename I was sending was LINE20050219_000000.txt so I'm not
> why LINE20050219. is in the error message. The commands being
> are as follows:
> open xx.xx.x.xxx
> cd /home/cele...FTP server problems
This might be a Comcast problem not a Linux problem. I've enabled a vsftp
server on a CentOS5 box. It works fine on my LAN but it doesn't work over
the Internet. I can log in to the FTP server so the port forwarding on my
Netgear router is working but I can only execute one command after I've
connected. For example if I do an ls it works the first time, if I do an
ls the second time it hangs.
Does anyone have any theories about whats happening? Is Comcast blocking
On Sat, 31 May 2008 13:46:47 -0500, General Schvantzkopf rearranged some
electrons to say:
> This might be a Comcast problem not a Linux problem. I've enabled a
> vsftp server on a CentOS5 box. It works fine on my LAN but it doesn't
> work over the Internet. I can log in to the FTP server so the port
> forwarding on my Netgear router is working but I can only execute one
> command after I've connected. For example if I do an ls it works the
> first time, if I do an ls the second time it hangs.
> Does anyone have any theories about whats happening? Is Comcast blocking
They may very well be. You can listen on a non-standard port, though.
Have you set up port forwarding for the passive mode ports as well?
On Sat, 31 May 2008 20:26:38 +0000, david wrote:
> On Sat, 31 May 2008 13:46:47 -0500, General Schvantzkopf rearranged some
> electrons to say:
>> This might be a Comcast problem not a Linux problem. I've enabled a
&g...Ftp from as400 to PC
I have packed value in a file in the AS400 and I need to send my file from
as400 to PC
and I need to send my file from pc to AS400 with FTP
but I have a problem with packed caracteres
please could you help
try to use "bin" it is - "Representation type is binary"
after you sign on, type
it's not ok :(
"Gary Segal" <email@example.com> a �crit dans le message de news:
> try to use "bin" it is - "Representation type is binary"
> after you sign on, type
> I have packed value in a file in the AS400 and I need to send my file from
> as400 to PC
> and I need to send my file from pc to AS400 with FTP
> but I have a problem with packed caracteres
> please could you help
> Best regards
Whether you get them to your PC in ASCII or EBCDIC, the PC won't know
what to do with the packed fields.
You probably should do a CPYTOIMPF on the AS400 side first and produce
a comma delimted file with numeric fields 'converted' from packed to
just one question :
what for do you need your file on PC ? is it to send it via email? to
display it ? to copy it in another database on PC ?
sometimes i need to transfer files from one system to another, then i
use FTP to get a S...AS400 FTP question
We have a simple lan with an AS400 and a few pcs. One dedicated pc has an
internet connection and runs BOS Jadvantege (this software gives access to
an AS400 signon screen from over the internet)
With this configuration in mind, we need to provide an AS400 file to a
remote location each night. They have an AS400 as well and want to use ftp
to retrieve it. They say we can provide them a userid, password, and ip
address to our AS400 to do this. Can someone elaborate on this approach so
we can try it ourselves. We also wonder what security considerations must be
taken into account on our side.
Basically you assign a public IP to your AS/400, make sure the default route
is set to your Inet access and let them (and anybody) telnet/ftp into your
AS/400 from the outside world. You weigh the security risks.
You say "we need to provide an AS400 file to a remote location each night"
Why do they, outside location, need a userid/password? You can initiate the
ftp "put" from your side. Maybe have a common ftp storage place (ISP web
space). You "put" it there, and they "get" from there. That way neither one
of you, or at least you, expose your AS/400 to the Inet. You can even
automate the ftp "put" process.
or How bout you e-mail them the file. FTP to your PC them send it to them.
Just my thoughts. I am sure there is a million and one ways of doing it.
"Suzi Carr" <scarr401@yahoo....ftp server problems
I'm trying to set up a server on my G4, OS X 10.2.6 and I'm having
trouble doing so... :-(
I'm using CrushFtp and sitting in a small network with a D-link router
connecting us. So, I have problem when trying to connect to my server.
If I look in CrushFtp everything seems ok and it says someone is
connected, and I get a welcome message when using fetch:
220-Welcome to CrushFTP!
220 CrushFTP Server Ready.
230-Valkommen till Per Kareheds ftp-server! (welcome to...)
230 Password OK. Connected.
But still, i don't get a listing of files in fetch and sometimes (not
always) a...FTP from UNIX to AS400
We receive the following message when we transfer a flat text file in
ASCII from UNIX to AS400 ftp server :
Error [426-Records written to file FILE1 in library QGPL have been
truncated. Data in file may not be valid.
426 Data transfer ended.]"
Can someone explain the message and suggest how to transfer a file
without data corruption and without error messages.
By default the AS/400's FTP server assumes you're transferring a file
to the native LIBRARY/FILE database system on the machine. If you want
to just transfer a flat text ASCII file then you probably want to use
the AS/400's IFS which is a Unix-like file storage system. When you
log on to the FTP server, use "quote site namefmt 1" which tells the
400 you want to use the IFS. Then you can cd to something like
/home/myuser and do a put to that directory.
Once uploaded you can find the file by using the WRKLNK command from an
OS/400 command line (i.e. WRKLNK '/home/myuser')
> Hello All,
> We receive the following message when we transfer a flat text file in
> ASCII from UNIX to AS400 ftp server :
> Error [426-Records written to file FILE1 in library QGPL have been
> truncated. Data in file may not be valid.
> 426 Data transfer ended.]"
> Can someone explain the message and suggest how to transfer a file
> without data corruption and without error messages.
> T...What FTP servers should FTP/iX be able to talk to
We have been communicating quite merrily for years to the MS FTP service
However for various reasons we are now trying to communicate (via MPE/iX
FTP A0011001) with a particular PC currently using an evaluation copy of
RaidenFTPD running under W98.
Whilst we seem to be able to open a connection any attempt at DIR or
other 'standard' commands do not appear to be recognised. They seem to work
from a MS FTP Client.
Anyone out there with experience of Raiden. Should it work with MPE.
As an alternative is there a preferred/recommended FTP Server to run under
W98...Re: What FTP servers should FTP/iX be able to talk to
As an addendum.
I now realise some 'standard' commands, such as GET, are not standard. I
assume FTP translates them to the RFC959 standard RETR, I was somewhat
mislead by the fact that $MS also uses get and so thought it was a standard
command, oh how daft of me.
We seem to be getting a
'Cannot open data connection' message
followed by an
'invalid reply code from remote' message.
I guess the basic question is are there any preferred FTP servers that can
be recommended for use with MPE.
* To join/leave the list, search archives, change list setti...FTP to AS400 and Filename length
Let me preface this by saying that I know very little aout the AS400.
We have a program that sends files froma PC to an AS400 via FTP. It
works in several places and at one point actually worked in the one I
am having difficulty with.
What we do is put a file with _PARTIAL on the end of it, then rename
it to the desired filename. For example we would put Consolidated.Tx
to somelibrary/Consolidated.Tx_PARTIAL. Upon completion of the put
process we do a rename to the desired filename. So we would rename
somelibrary/Consolidated.Tx_PARTIAL to somelibrary/Consolidated.Tx.
This worked in April, and apparently the client hadn't run the program
for some time, but now that the did, it complained about "Specified
object name too long. limit is 10 chars" or somethign to that effect.
It was suggested that we do somethign like issue
quote site namefmt 1
That may indeed allow us to use longer file naming, but it seems to
give other errors like not liking the extension or member. And besides
the program didn't have to issue this before, and would probably mess
it up for non as400 systems.
What could possibly have been changed to break this, and what needs to
be done to get it workign agian.
Thanks in advance,
When you FTP a file from a PC to an AS/400 into the QSYS file system (that
is was you are doing), then each part of the file name which are library,
file and member name must not exceed 10 characters. So I assume that you
tried to trans...CRLF FTP AS400 to PC
I need to FTP from AS400 PF to PC textfile (.txt). I already success to FTP the file, but at the end of the textfile there is an additional empty line. I need to omit this line. How to do it?
My PF in AS400 (lenght 100 Alphanumeric)
000004 :23E:SDVA ...AS400 to AS400 connection
What`s the rocommended method of copyting data beetween two AS400 (both on
> What`s the rocommended method of copyting data beetween two AS400 (both on
> V5R1) ?
"tom" <firstname.lastname@example.org> wrote in message
> What`s the rocommended method of copyting data beetween two AS400 (both on
> V5R1) ?
It depends how often you are doing the copying & how much there is. If you
want say one record but every 3 seconds then you can either store them up
for a few hours days or weeks & use FTP, snads or a tape. Or you can do it
realtime & use DDMF to zap each record to the other machine as its written.
I actually save the data I want sending this way into a file which is read &
deleted by a daemon style of job so that if comms or the other machine fails
only the daemon is affected.
FTP has its upside in that the target is easily resettable for say a unix
machine but SNADS has an easy to use & understand message sent to the sender
& recipient to verify arrival of the data.
You could install the No Charge SW "Object Connect" from the OS CDs.
Once setup you can issue cmds line SAVRSTLIB and SAVRSTOBJ. Give these
cmds the LIB or OBJ list and the target system. It then
saves/transfers/restores to the target system all with just the 1
tom wro...Printing on AS400 via IBM AS400 Java Toolkit
I'm working on a program that needs to send a print job to a printer
connected to an AS/400. I've tried using the SpooledFileOutputStream
and I've also tried using one of the SCS Writer classes. Neither
solution is working. With the SpooledFileOutputStream I am at least
able to create my print file, but when my program ends, the file is
still not being printed.
This program does not run on the AS400, it runs on a PC and connects to
the AS400 via the toolkit classes. I know this part works as I am able
to use the toolkit to access Data Queues, Files and Data Areas without
Is there anyplace anyone can point me to see some examples of how to
print a file using the AS400 Java Toolkit?
Thanks in advance,
What printer data stream is used? or how was the printer data generated?
I am wondering if the data stream being generated matches the data
stream of the printer connected to the iSeries? What printer is attached
to the iSeries and how is it configured?
The iSeries info center has some Toolbox examples:
Programming>Java>IBM Toolbox for Java>IBM Toolbox for Java Classes>
> Hello all,
> I'm working on a program that needs to send a print job to a printer
> connected to an AS/400. I've tried using the SpooledFileOutputStream
> and I've also tried using one of the SCS Writer classes. Neither
> solution is working. With the Sp...Can't FTP to my FTP server from outside
I have a Fedora Core 2 machine with pure-ftpd server installed behind
my home Siemans 4 port router and DSL modem communicating thru my DSL
ISP. I can FTP to that ftp server fine using its local IP address from
within my home network.
I have done a www.WhatisMyIP.com and determined my internet IP
address. I can ping to that IP from outside of my network but an FTP
attempt yields: connect timed out. I have set the router to make the
local IP address of the FTP server a DMZ machine, hence it should
allow any access through it.
I suspect that my ISP is blocking at least certain ports, from
googling this problem, and that perhaps if I use a high non standard
port somehow, access may be possible.
Is this correct? If so, would someone access my server in a different
way than the usual ftp x.x.x.x ? Also, do I have to change an ftpd
setting from usual defauts?
Thanks so much for any ideas.
> I have a Fedora Core 2 machine with pure-ftpd server installed behind
> my home Siemans 4 port router and DSL modem communicating thru my DSL
> ISP. I can FTP to that ftp server fine using its local IP address from
> within my home network.
> I have done a www.WhatisMyIP.com and determined my internet IP
> address. I can ping to that IP from outside of my network but an FTP
> attempt yields: connect timed out. I have set the router to make the
> local IP address of the FTP server a DMZ machine, hence it should