Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Unix - script
Try out the following.
wget ftp://<user>:<password>@<host
IP>/<full path of File/Directory>
Example :-
wget ftp://oracle:expert@192.168.1.11//home/superman/myfile.txt
Get back in
case of any clarification.
Bye
Sundar
Thomas, Kevin wrote:
Roland,Try this by setting up environment variables at the top of your script:SERVER1= 10.10.10.10USER1= 'xxx'PWD1= 'xxx'SERVER2= 10.10.10.20USER1= 'yyy'PWD2= 'yyyy'Then have this:ftp -i -n << EOFopen $SERVER1user $USER1 $PWD1cd scriptsget <file>closeEOFYou can then have a section like the one below if you want to copy to adifferent serverother than the one you are running this script from:ftp -i -n << EOFopen $SERVER2user $USER2 $PWD2cd scriptsput <file>closeEOFBoth of these can be included in the one shell script.Hope that helps.Kev.'In Windows no one can hear you scream'__________________Kevin ThomasTechnical AnalystDeregulation ServicesCalanais Ltd.(2nd Floor East - Weirs Building)Tel: 0141 568 2377Fax: 0141 568 2366<a class="moz-txt-link-freetext" href="http://www.calanais.com">http://www.calanais.com-----Original Message-----Sent: 09 January 2002 07:16To: Multiple recipients of list ORACLE-LHallo,I would like to have an example of a unix script, which does the following:copy some files from directory /prod/sas/data located at "hardy".(which isa computer)to the other database hakon. Is it possible to do this. Please help mequick.Thanks in advanceRoland S Received on Fri Jan 11 2002 - 05:07:06 CST