The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
fetch - and how to use it behind a firewall 4 January 1999
Need more help on this topic? Click here
This article has 2 comments
Show me similar articles
fetch allows you to retrieve a file by supplying a URL (Uniform Resource Locator).  It is very useful and powerful tool.  It effectively automates an anonymous FTP session.

If you get the following message when you use fetch, then I suspect you are behind a firewall:

su-2.02# fetch ftp://<somefilename>
fetch: ftp://<somefilename>: FTP error:
fetch: Can't open data connection
su-2.02# 

If you are behind a firewall, you might want to try the -P option on the command line.   This will force fetch to "use the passive mode of the FTP protocol.   This is useful for crossing certain types of firewalls." [as quoted from man fetch].


Need more help on this topic? Click here
This article has 2 comments
Show me similar articles