SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from Trustix snarf-2.0.9-2tr.i586.rpm

snarf

Section: User Commands (1)
Updated: 17 Jun 2000
Index 

NAME

snarf - Simple Non-interactive All-purpose Resource Fetcher 

SYNOPSIS

snarf[-avqprzm]URL [outfile]...

 

DESCRIPTION

Retrieves data from a variety of protocols, namely http,ftp,andgopher.

 

USAGE

snarfis invoked with any number of URLs and outfiles. If an outfile is notspecified, snarf preserves the remote file name when saving.

For example,snarf http://foo.bar.com/images/face.gifwill retrieve the file ``face.gif'' to the local system. In the eventthat there is no filename (the url ends in a slash), the data isretrieved and stored in the fileindex.htmlfor http URLs, ftpindex.txtfor ftp URLs, orgopherindex.txtfor gopher URLs.

Using a dash, "-", as the outfile causessnarfto send its output to stdout rather than a file.

To log in to an ftp server or website that requires a username andpassword, use the syntax http://username:password@site.com/. If youomit the password, you will be prompted for it.

Snarf has a built-in option to download the latest version of itself;simply runsnarfLATEST.

 

OPTIONS

-a
Causes snarf to use "active" ftp. By default, snarf uses passive ftp, and, if the server does not support it, falls back to activeftp. Using the -a option will avoid the initial passive attempt.
-r
Resumes an interrupted ftp or http transfer by checking if there is a local filewith the same name as the remote file, and starting the transfer at theend of the local file and continuing until finished. This option onlyworks with HTTP servers that understand HTTP/1.1 and ftp servers thatsupport the REST command. snarf uses this option automatically if theoutfile already exists.
-n
Don't resume; ignore the outfile if it exists and re-transfer it inits entirety.
-q
Don't print progress bars.
-p
Forces printing of progress bars. Snarf has a compile-time option forwhether progress bars print by default or not. The -p optionoverrides the -q option. In addition, if progress bars are enabled bydefault, snarf suppresses them when standard output is not aterminal. Using-pwill override this behavior.
-v
Prints all messages that come from the server to stderr.
-z
Send a user-agent string similar to what Netscape Navigator 4.0 uses.
-m
Send a user-agent string similar to what Microsoft Internet Exploreruses.

Each option only affects the URL that immediately follows it. To havean option affect all URLs that follow it, use an uppercase letter forthe option, e.g. -Q instead of -q.

 

ENVIRONMENT

Snarf checks several environment variables when deciding what to usefor a proxy. It checks a service-specific variable first, thenSNARF_PROXY,thenPROXY.

The service-specific variables areHTTP_PROXY,FTP_PROXY,andGOPHER_PROXY.

Snarf also checks theSNARF_HTTP_USER_AGENTenvironment variable and will use it when reporting its user-agentstring to an HTTP server. In the same spirit, it also uses theSNARF_HTTP_REFERERenvironment variable to spoof a Referer to the web server.

 

BUGS

Bugs? What bugs? If you find 'em, report 'em.  

AUTHOR

Copyright (C) 2000 Zachary Beane (xachAATTxach.com)


 

Index

NAME
SYNOPSIS
DESCRIPTION
USAGE
OPTIONS
ENVIRONMENT
BUGS
AUTHOR

This document was created byman2html,using the manual pages.