Hi Duncan, here are the outputs:
After ifconfig:
eth0 Link encap:Ethernet Hardware Adresse 00:19:99:bd:8e:b3
inet Adresse:10.39.100.122 Bcast:10.39.103.255 Maske:255.255.252.0
inet6-Adresse: fe80::219:99ff:febd:8eb3/64
Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:13424279 errors:0 dropped:0 overruns:0 frame:0
TX packets:2236591 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:6933686179 (6.9 GB) TX bytes:255678753 (255.6 MB)
Interrupt:20 Speicher:fe700000-fe720000
lo Link encap:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
UP LOOPBACK RUNNING MTU:16436 Metrik:1
RX packets:2265821 errors:0 dropped:0 overruns:0 frame:0
TX packets:2265821 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:1762714118 (1.7 GB) TX bytes:1762714118 (1.7 GB)
Then after dig fsl.fmrib.ox.ac.uk
; <<>> DiG 9.7.0-P1 <<>> fsl.fmrib.ox.ac.uk
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25808
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 4, ADDITIONAL: 5
;; QUESTION SECTION:
;fsl.fmrib.ox.ac.uk. IN A
;; ANSWER SECTION:
fsl.fmrib.ox.ac.uk. 14400 IN CNAME wwwa.fmrib.ox.ac.uk.
wwwa.fmrib.ox.ac.uk. 14400 IN A 129.67.248.65
;; AUTHORITY SECTION:
ox.ac.uk. 67569 IN NS dns0.ox.ac.uk.
ox.ac.uk. 67569 IN NS dns1.ox.ac.uk.
ox.ac.uk. 67569 IN NS ns2.ja.net.
ox.ac.uk. 67569 IN NS dns2.ox.ac.uk.
;; ADDITIONAL SECTION:
ns2.ja.net. 64482 IN A 193.63.105.17
ns2.ja.net. 64482 IN AAAA 2001:630:0:45::11
dns0.ox.ac.uk. 55827 IN A 129.67.1.190
dns1.ox.ac.uk. 55827 IN A 129.67.1.191
dns2.ox.ac.uk. 55827 IN A 163.1.2.190
;; Query time: 67 msec
;; SERVER: 141.42.1.11#53(141.42.1.11)
;; WHEN: Thu Feb 1 19:03:53 2018
;; MSG SIZE rcvd: 244
Then after echo "import socket;
a=socket.gethostbyname('fsl.fmrib.ox.ac.uk'); print a;" | python
129.67.248.65
And finally after echo 'import urllib2;
req=urllib2.Request("https://fsl.fmrib.ox.ac.uk:443/fsldownloads/fslmirrorlist.txt");
res = urllib2.urlopen(req); print res.read()' | python
bash: Syntaxfehler beim unerwarteten Wort `('
(My computer is in German - basically it says syntax error at an
unexpected word `('
Not sure if I messed something up while copying - I copied the last
bit as one command, but maybe I should have done it as three separate
commands, i.e. first echo 'import urlib2; and then in a new line req=
etc?
I also noticed that we have double quotes after the first echo and
then single quotes after the second one, perhaps that's the issue?
I'm more or less clueless when it comes to programming so please bear with me.
Thanks!
Darko
On 1/31/18, Duncan Mortimer <[log in to unmask]> wrote:
> Hi,
>
> Thanks for the information. I assume you have no issue with connecting to
> the FSL web site?
>
> Could you also try the following:
>
> ifconfig
> or
> ip addr
> (if ifconfig gives an error)
>
> dig fsl.fmrib.ox.ac.uk
>
> and
>
> echo "import socket; a=socket.gethostbyname('fsl.fmrib.ox.ac.uk'); print a;"
> | python
>
> and finally
>
> echo 'import urllib2;
> req=urllib2.Request("https://fsl.fmrib.ox.ac.uk:443/fsldownloads/fslmirrorlist.txt");
> res = urllib2.urlopen(req); print res.read()' | python
>
> Could I see all output please.
>
> Regards,
>
> Duncan
>
> --
> Duncan Mortimer
> Senior Informatics Officer,
> Wellcome Centre for Integrative Neuroimaging, FMRIB, University of Oxford
> John Radcliffe Hospital, Oxford, UK
>
|