Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Ang: RE: Unix - script
So I have to use the ip-addresses? I cant use the name of the computer, for instance hakon5.
Thanks in advance
Roland
"Gogala, Mladen" <MGogala_at_oxhp.com>@fatcity.com den 2002-01-09 07:11 PST
Sänd svar till ORACLE-L_at_fatcity.com
Sänt av: root_at_fatcity.com
Till: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> Kopia:
I would suggest using wget, which is built exactly for this purpose.
-----Original Message-----
Sent: Wednesday, January 09, 2002 3:20 AM
To: Multiple recipients of list ORACLE-L
Roland,
Try this by setting up environment variables at the top of your script:
SERVER1= 10.10.10.10
USER1= 'xxx'
PWD1= 'xxx'
SERVER2= 10.10.10.20
USER1= 'yyy'
PWD2= 'yyyy'
Then have this:
ftp -i -n << EOF
open $SERVER1
user $USER1 $PWD1
cd scripts
get <file>
close
EOF
You can then have a section like the one below if you want to copy to a
different server
other than the one you are running this script from:
ftp -i -n << EOF
open $SERVER2
user $USER2 $PWD2
cd scripts
put <file>
close
EOF
Both of these can be included in the one shell script.
Hope that helps.
Kev.
'In Windows no one can hear you scream'
Kevin Thomas
Technical Analyst
Deregulation Services
Calanais Ltd.
(2nd Floor East - Weirs Building)
Tel: 0141 568 2377
Fax: 0141 568 2366
http://www.calanais.com
-----Original Message-----
Sent: 09 January 2002 07:16
To: Multiple recipients of list ORACLE-L
Hallo,
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 is
a computer)
to the other database hakon. Is it possible to do this. Please help me
quick.
Thanks in advance
Roland S
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: Roland.Skoldblom_at_ica.se
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: Roland.Skoldblom_at_ica.se
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Jan 10 2002 - 07:35:17 CST
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message