maybe tar or cpio could do it ?
something like 

on local system :
cd maindir; find ./ -name '*.s3d' -print | cpio -o > archive.file

transfer archive file

on remote system
cd maindir; cpio -id < archive.file 

or even
cd maindir; find ./ -name '*.s3d' -print | cpio -o | remsh remote "(cd
maindir | cpio -id)"

hth

A 02:42 03/05/01 -0700, vous avez �crit :
>Hi,
>I want to write a program and need some help:
>1: The program should search for *.s3d files in parent
>as well as sub directories 
>2: create those directories /sub directories on remote
>system if it doesn't exist
>3: copy all the files to remote system in exact
>direxctories as it is in the client system.
>
>Please help.
>kapil
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Auctions - buy the things you want at great prices
>http://auctions.yahoo.com/
>
>
>
>_______________________________________________
>Redhat-list mailing list
>[EMAIL PROTECTED]
>https://listman.redhat.com/mailman/listinfo/redhat-list
>
>
                        - * - * - * - * - * - * -
Mes idees n'engagent que moi (vieux proverbe du Net)

Thierry ITTY
eMail: [EMAIL PROTECTED]                FRANCE



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to