wget Äquivalent?

Flapy

Aktives Mitglied
Thread Starter
Dabei seit
29.02.2008
Beiträge
1.213
Reaktionspunkte
154
Hallo,

möchte eine Linux ISO (zwecks Speedtest) übers Terminal ziehen. Auf Windows macht man das mit

Code:
wget.exe -c --no-proxy ftp://ftp.uni.de/linuxdistri.iso -O NUL

Was ist das OS X Äquivalent dafür?
 
Du kannst dir einfach wget mit MacPorts installieren und dann wget benutzen.
Ansonsten koenntest du curl benutzen, welches standardmaessig schon installiert ist.

http://macports.org
 
Mein Tipp:

installier Dir macports:

http://www.macports.org/

da hast Du Zugriff auf sehr sehr viele Programme aus dem Linux-Bereich, auch wget bekommst Du mittels

sudo port install wget


mit Boardmitteln kannst Du aber auch curl verwenden ( einfach "man curl" im Terminal für den Hilfetext eingeben).
 
mit -o filename kannst den output filename auch setzen, das -O nimmt automatisch den aus der URL...
 
habs jetzt mit

ftp: im terminal versucht...

ist das nicht das selbe wie curl??
 
Nein curl kann u.A. ein paar Protokolle mehr und hat sonst noch ein paar kleine Nettigkeiten mit dabei!
 
  • Gefällt mir
Reaktionen: Flapy
ok dann nehm ich curl...

wie kann ich bei curl den proxy ausschalten? (no-proxy)?
 
man curl und dann einfach mal selber lesen :)
 
hab ich gemacht...finde aber keine einstellung um den proxy auszuschalten :confused:

--proxy-anyauth
Tells curl to pick a suitable authentication method when communicating with the given proxy. This will cause an extra request/response round-trip. (Added in
7.13.2)

If this option is used twice, the second will again disable the proxy use-any authentication.

--proxy-basic
Tells curl to use HTTP Basic authentication when communicating with the given proxy. Use --basic for enabling HTTP Basic with a remote host. Basic is the default
authentication method curl uses with proxies.

If this option is used twice, the second will again disable proxy HTTP Basic authentication.

--proxy-digest
Tells curl to use HTTP Digest authentication when communicating with the given proxy. Use --digest for enabling HTTP Digest with a remote host.

If this option is used twice, the second will again disable proxy HTTP Digest.

--proxy-ntlm
Tells curl to use HTTP NTLM authentication when communicating with the given proxy. Use --ntlm for enabling NTLM with a remote host.

If this option is used twice, the second will again disable proxy HTTP NTLM.

-p/--proxytunnel
When an HTTP proxy is used (-x/--proxy), this option will cause non-HTTP protocols to attempt to tunnel through the proxy instead of merely using it to do HTTP-
like operations. The tunnel approach is made with the HTTP proxy CONNECT request and requires that the proxy allows direct connect to the remote port number curl
wants to tunnel through to.

If this option is used twice, the second will again disable proxy tunnel.
 
ist denn überhaupt ein proxy gesetzt in den environment variablen?
bei ftp sollte der doch eh keinen proxy nehmen, oder?

ansonsten guck mal bei der -x option in der man page oder die NO_PROXY option
 
ansonsten guck mal bei der -x option in der man page oder die NO_PROXY option

ruf ich die NO_PROXY Variante dann so auf? :confused:

Code:
curl -C - -O ftp://ftp.uni.de/linuxdistri.iso NO_PROXY

für was ist eigentlich der zweite "-" nach C und bevor -O?
 
NO_PROXY ist eine environment variable, die müsstest du in der shell für die domains setzen, für die kein proxy verwendet werden soll...

das -C - lässt curl automatisch den punkt für das fortsetzen suchen...

steht doch alles in der man page...
 
  • Gefällt mir
Reaktionen: Flapy
Zurück
Oben Unten