Forum Moderators: mack

Message Too Old, No Replies

Uploading To Multiple Dirs

         

Zap33

12:58 am on Sep 25, 2004 (gmt 0)

10+ Year Member



Is there a simple way to upload a file to multiple directories on a server with one command? I know the best way would be to have the file in one spot and have everything call that file from the specific dir but things aren't set up that way right now (hoping to save some time).

Thanks for your help.

mack

5:22 pm on Sep 25, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



As opposed to having to upload the file several times to different locations it would be possible to upload them once then copy them to the other locations if you have shell access.

Upoad the files once to one of the location then try

cp file.ext /new/file/location/

Just change file.ext to the name of your real file and repeat for all the location you need the file to be located.

Mack.

Zap33

3:33 am on Sep 28, 2004 (gmt 0)

10+ Year Member



Thanks Mack, I will give this a try!