From: "�yvind Skjold" <o-skjold@online.no>
Subject: Re: Multiple FTP's..
Date: Wed, 7 Mar 2001 14:30:14 +0100 [thread overview]
Message-ID: <8Kqp6.950$tR1.10120@news1.oke.nextra.no> (raw)
In-Reply-To: 3A9BBBC3.CB176B44@hotmail.com
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1614 bytes --]
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" <mstargard@hotmail.com> 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
> >
> > <ftp>mput test*.p TEST - doesn't work.. ( as you probably know
:-) )
> >
> > Read something about using ntrans and nmap with mput??
> >
> > �yvind.
prev parent reply other threads:[~2001-03-07 13:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-27 13:02 Multiple FTP's �yvind Skjold
[not found] ` <3A9BBBC3.CB176B44@hotmail.com>
2001-03-07 13:30 ` �yvind Skjold [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox