copy multiple file to local to remote

Advertisement

deviprasad
Joined:
Posts:
4
Location:
banglore

copy multiple file to local to remote

Please help how to copy multiple file to local to remote


currently i have the following code to do that but it only copies a single file instead of multiple.

"put C:\Users\derath\Desktop\Exatrs\job\ /scratch/home/odeeqa/oracle/odee_1/documaker/hotdirectory"

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,074
Location:
Prague, Czechia

Re: copy multiple file to local to remote

It copies all files from folder C:\Users\derath\Desktop\Exatrs\job\ to folder /scratch/home/odeeqa/oracle/odee_1/documaker/ saving all to a single file hotdirectory, overwritting one another.

You probably want to do:
put C:\Users\derath\Desktop\Exatrs\job\ /scratch/home/odeeqa/oracle/odee_1/documaker/hotdirectory/

Note the trailing slash.
_________________
Martin Prikryl

Reply with quote

deviprasad
Joined:
Posts:
4
Location:
banglore

copy multiple file to local to remote

i am sorry if i put the trailing slash at last it copies the whole folder and not the all files.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,074
Location:
Prague, Czechia

Re: copy multiple file to local to remote

For that, add a star to the source path:

put C:\Users\derath\Desktop\Exatrs\job\* /scratch/home/odeeqa/oracle/odee_1/documaker/hotdirectory/

Reply with quote

Advertisement

You can post new topics in this forum