Thanks, this is working!! The strange thing is that it don't violate the naming convention! I don't know what system they use.. �yvind. ---------------- "Mario Stargard" wrote in message news:3A9BBBC3.CB176B44@hotmail.com... > Well, I would imagine that would violate the naming convention on any > OS. OS/390 uses Global Datasets (GDG files) with versioning so that you > can ftp to a remote file and increment the version number. The remote > system must have some way of uniquely identifying the files. > On the other hand, if you just want to over-write the same file, just > use a for loop within ftp Here Text like so: > > #!/bin/ksh > ftp -nv hostname <<_HERE_ > user username password > cd directory > $( for file in * ; do > print "put $file TEST" > done ) > bye > _HERE_ > > "�yvind Skjold" wrote: > > > > Anyone?? > > > > I'm trying to create a script which has it's purpose to FTP > > multiple files from a local machine to a remote server . > > That's works fine using the mput-command.. > > > > But the problem is the to rename multiple files to the exact same > > at the remote server... > > > > I have 10 files, let's say: ( on the local machine ) > > test1.p > > test2.p > > test3.p > > . > > . > > . > > test10.p > > > > And I want to rename al of them to TEST on te remote-server.. > > > > Then I will have : ( on the remote-server ) > > > > TEST > > TEST > > TEST > > TEST > > . > > . > > TEST > > > > mput test*.p TEST - doesn't work.. ( as you probably know :-) ) > > > > Read something about using ntrans and nmap with mput?? > > > > �yvind.