Toto řešení není přímo mé, ael je převzaté od Maris Elsins a celé je popsané i stránkách společnosti Pythian.
[root@test data]# wget --no-check-certificate -nv https://raw.github.com/MarisElsins/TOOLS/master/Shell/getMOSPatch.sh
WARNING: certificate common name `www.github.com' doesn't match requested host name `raw.github.com'.
WARNING: certificate common name `www.github.com' doesn't match requested host name `raw.githubusercontent.com'.
2015-02-08 07:02:15 URL:https://raw.githubusercontent.com/MarisElsins/TOOLS/master/Shell/getMOSPatch.sh [5658/5658] -> "getMOSPatch.sh.1" [1]
[root@owap-test data]# ls -ltr
total 36
drwx------ 2 root root 16384 Feb 7 14:47 lost+found
drwxr-xr-x 3 root root 4096 Feb 7 21:37 backup
-rw-r--r-- 1 root root 5747 Feb 8 07:01 getMOSPatch.sh
[root@test data]# chmod +x getMOSPatch.sh
[root@test data]# ./getMOSPatch.sh reset=yes
Oracle Support Userid: tom@tomas-solar.com
Oracle Support Password:
Getting the Platform/Language list
Available Platforms and Languages:
531P - Acme Packet 6300
527P - Acme Packet OS
512P - Apple iOS
293P - Apple Mac OS X (Intel) (32-bit)
522P - Apple Mac OS X (Intel) (64-bit)
421P - Apple Mac OS X (PowerPC)
516P - Embedded Linux ARM
528P - Linux ARM 32-bit VFP HardFP ABI
523P - Linux ARM 32-bit VFP SoftFP ABI
214P - Linux Itanium
46P - Linux x86
226P - Linux x86-64
912P - Microsoft Windows (32-bit)
208P - Microsoft Windows Itanium (64-bit)
539P - Microsoft Windows Phone
233P - Microsoft Windows x64 (64-bit)
276P - Monta Vista x86
277P - Monta Vista x86-64
...
Comma-delimited list of required platform and language codes: 226P
Configuration saved
[root@test data]# ls -la
total 1221808
drwxr-xr-x 4 root root 4096 Feb 8 07:10 .
drwxr-xr-x 26 root root 4096 Feb 7 14:26 ..
-rwxr-xr-x 1 root root 5658 Feb 8 07:02 getMOSPatch.sh
-rw-r--r-- 1 root root 18 Feb 8 07:04 .getMOSPatch.sh.cfg
drwx------ 2 root root 16384 Feb 7 14:47 lost+found
[root@test data]# ./getMOSPatch.sh patch=8202632
Oracle Support Userid: tom@tomas-solar.com
Oracle Support Password:
Getting list of files for patch 8202632 for "Linux x86-64"
Downloading the patches:
Downloading file p8202632_10205_Linux-x86-64.zip ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
2 1191M 2 31.1M 0 0 3417k 0 0:05:57 0:00:09 0:05:48 4270k
..
Downloading file p8202632_10205_Linux-x86-64.zip ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1191M 100 1191M 0 0 4095k 0 0:04:58 0:04:58 --:--:-- 4125k
p8202632_10205_Linux-x86-64.zip completed with status: 0k
Komentáře