Discussion:
copy/ftp to with wildcard source
(too old to reply)
n***@metso.com
2008-05-01 13:27:09 UTC
Permalink
Is there a way to do in a procedure:
$COPY/FTP ... remote:..partialname_*.txt *

(In this case the rest of the string is a date_stamp and varies,
especially on the weekend)?

This is equivalent to
mget remote:..partialname_*.txt

but without the prompt and YorN responses.

Or is there another way to do this blind from batch?
Michael Corbett
2008-05-01 13:46:56 UTC
Permalink
Post by n***@metso.com
$COPY/FTP ... remote:..partialname_*.txt *
(In this case the rest of the string is a date_stamp and varies,
especially on the weekend)?
This is equivalent to
mget remote:..partialname_*.txt
but without the prompt and YorN responses.
Or is there another way to do this blind from batch?
You can do it with ftp and a take file -

$ ! ftp example procedure using a take file
$ create take.file
verbose
exit-on-error on
mget *.txt
exit
$ !
$ mu ftp /user=corbett/pass=N1K0NBROKEN/take=take.file alcor.process.com
$ !
$ exit

regards
Mike
--
+-------------------------------------------------------------------------+
Michael Corbett Email: ***@process.com
Process Software Phone: 800 722-7770 x369
959 Concord St. 508 879-6994 x369
Framingham MA 01701-4682 FAX: 508 879-0042
Ken Connelly
2008-05-01 13:52:42 UTC
Permalink
Norm -

I'd suggest changing the to build a second procedure which is then
executed by the existing procedure. To build the second procedure, use
f$search (in a loop?) to find the exact names of the file(s) that you
want to transfer and create precise copy/ftp lines from that.

- ken
Post by n***@metso.com
$COPY/FTP ... remote:..partialname_*.txt *
(In this case the rest of the string is a date_stamp and varies,
especially on the weekend)?
This is equivalent to
mget remote:..partialname_*.txt
but without the prompt and YorN responses.
Or is there another way to do this blind from batch?
--
- Ken
=================================================================
Ken Connelly Associate Director, Security and Systems
ITS Network Services University of Northern Iowa
email: ***@uni.edu p: (319) 273-5850 f: (319) 273-7373
Loading...