View Full Version : UNIXFTP get / mget Q's...


MountainBreeze
03-19-2004, 10:59 AM
I need to retrieve all files ending in .htm, in multiple dirs, off the root dir of a server.

Does anyone know if get or mget can be used to do this?

Thanks,
Rob

JohnR
03-19-2004, 11:25 AM
Haven't tried i a while but can you do a *.htm -R for recursive?

MountainBreeze
03-19-2004, 12:34 PM
Thanks for the reply John.

I played around a bit and this is what I got:

mget * will get all files, in all dirs and dump them into the CURRENT dir on the client (does not create dirs that are on server)

mget *.htm will get only .htm files in CURRENT dir

Also tried other variations but to no avail.

I thought about a recursive parameter but couldn't find anything on it. I tried the -r and got an error. :(

Dontcha' just love computers? ;)

Cheers,
Rob

JohnR
03-19-2004, 12:38 PM
Try a capital R - for grins and giggles. One day I remember it making a difference

MountainBreeze
03-19-2004, 01:31 PM
Didn't work.

Of course, it could be the version of UNIX/mget or the FTP config on the server.

Thanks for the help though John.

Hope to catch up w/ ya' at the water ths year!

Rob

leptar
03-19-2004, 03:40 PM
try using the cp command.. we used this alot with HP-UNIX


cp -r sourcedir targetdir

I think you need to make the new directory first...

-R i think is an unconditional copy where reguardless of the tags on the file it will copy it