* Multiple FTP's..
@ 2001-02-27 13:02 �yvind Skjold
[not found] ` <3A9BBBC3.CB176B44@hotmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: �yvind Skjold @ 2001-02-27 13:02 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 645 bytes --]
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.
^ permalink raw reply [flat|nested] 2+ messages in thread[parent not found: <3A9BBBC3.CB176B44@hotmail.com>]
* Re: Multiple FTP's.. [not found] ` <3A9BBBC3.CB176B44@hotmail.com> @ 2001-03-07 13:30 ` �yvind Skjold 0 siblings, 0 replies; 2+ messages in thread From: �yvind Skjold @ 2001-03-07 13:30 UTC (permalink / raw) [-- 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. ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-03-07 13:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-27 13:02 Multiple FTP's �yvind Skjold
[not found] ` <3A9BBBC3.CB176B44@hotmail.com>
2001-03-07 13:30 ` �yvind Skjold
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox