2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2012-10-11 12:17:10 +00:00
|
|
|
<HTML><HEAD><TITLE>Man page of DOSAGE</TITLE>
|
2012-06-20 19:58:13 +00:00
|
|
|
</HEAD><BODY>
|
2012-10-11 12:17:10 +00:00
|
|
|
<H1>DOSAGE</H1>
|
2012-06-20 19:58:13 +00:00
|
|
|
Section: User Commands (1)<BR><A HREF="#index">Index</A>
|
|
|
|
<A HREF="../index.html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
|
|
<H2>NAME</H2>
|
|
|
|
|
2012-10-11 12:17:10 +00:00
|
|
|
dosage - comic strip downloader
|
2012-06-20 19:58:13 +00:00
|
|
|
<A NAME="lbAC"> </A>
|
|
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
2012-10-11 12:17:10 +00:00
|
|
|
<B>dosage</B>
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
[<I>options</I>]
|
|
|
|
|
|
|
|
<I>module</I>
|
|
|
|
|
|
|
|
[<I>module</I>...]
|
|
|
|
|
|
|
|
<A NAME="lbAD"> </A>
|
|
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
2012-10-11 12:17:10 +00:00
|
|
|
<B>dosage</B>
|
2012-06-20 19:58:13 +00:00
|
|
|
|
2012-10-11 12:17:10 +00:00
|
|
|
is an application designed to keep a local 'mirror' of specific
|
|
|
|
web comics and other picture-based content, such as
|
|
|
|
'Picture Of The Day' sites, with a variety of options
|
2012-06-20 19:58:13 +00:00
|
|
|
for updating and maintaining collections.
|
|
|
|
<A NAME="lbAE"> </A>
|
|
|
|
<H2>OPTIONS</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
2012-10-11 12:17:10 +00:00
|
|
|
<DT><B>-b</B><I> PATH</I><B></B>, --basepath=<I>PATH</I>
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
<DD>
|
|
|
|
Specifies a base path to put comic subdirectories. The default is 'Comics'.
|
2012-10-11 12:17:10 +00:00
|
|
|
<DT><B>--baseurl=</B><I>PATH</I>
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
<DD>
|
|
|
|
Specifies the base URL for output events. The default is a local file URI.
|
2012-10-11 12:17:10 +00:00
|
|
|
<DT><B>-a</B>, <B>--all</B>
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
<DD>
|
2012-10-11 12:17:10 +00:00
|
|
|
Traverses all available strips backwards from the current one.
|
|
|
|
This can be useful you want a full collection of a new comic strip,
|
|
|
|
or update an existing one where files are missing.
|
|
|
|
Catchups can start at a specific image by using the index syntax, see
|
2012-06-20 19:58:13 +00:00
|
|
|
the
|
|
|
|
<B>INDEX SYNTAX</B>
|
|
|
|
|
|
|
|
and
|
|
|
|
<B>SPECIAL SYNTAX</B>
|
|
|
|
|
2012-10-11 12:17:10 +00:00
|
|
|
sections for more information. This is useful when you missed some days
|
|
|
|
and want only to download the missing files. To make this task easy,
|
|
|
|
the traversal ends at the first existing image file when starting from
|
|
|
|
an index (excluding the index itself).
|
2012-06-20 19:58:13 +00:00
|
|
|
<DT><B>-h</B>, <B>--help</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Output brief help information.
|
|
|
|
<DT><B>-l</B>, <B>--list</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
List available comic modules in multi-column fashion.
|
2012-10-11 12:17:10 +00:00
|
|
|
<DT><B>--singlelist</B>
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
<DD>
|
|
|
|
List available comic modules in single-column fashion.
|
2012-10-11 12:17:10 +00:00
|
|
|
<DT><B>-m</B><I> MODULE</I><B></B>, --modulehelp=<I>MODULE</I>
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
<DD>
|
|
|
|
Output module-specific help for
|
|
|
|
<I>MODULE</I>.
|
|
|
|
|
|
|
|
<DT><B>-o</B><I> OUTPUT</I><B></B>, --output=<I>OUTPUT</I>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
<I>OUTPUT</I>
|
|
|
|
|
|
|
|
may be any one of the following:
|
|
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
|
|
|
|
<DL COMPACT><DT><DD>
|
|
|
|
<B>html </B>-
|
|
|
|
|
|
|
|
Writes out an HTML file linking to the strips actually downloaded in the
|
|
|
|
current run, named by date (ala dailystrips). The files can be found in the
|
|
|
|
'html' directory of your Comics directory.
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
|
|
|
|
<DL COMPACT><DT><DD>
|
|
|
|
<B>rss </B>-
|
|
|
|
|
|
|
|
Writes out an RSS feed detailing what strips were downloaded in the last 24
|
|
|
|
hours. The feed can be found in Comics/dailydose.xml.
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
|
|
|
|
<DL COMPACT><DT><DD>
|
|
|
|
<B>rss </B>-
|
|
|
|
|
|
|
|
Writes an RSS feed with all of the strips downloaded during the run, for use
|
|
|
|
with your favourite RSS aggregator.
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
|
|
<DT><B>-t</B>, <B>--timestamps</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Print timestamps for all output at any level.
|
|
|
|
<DT><B>-v</B>, <B>--verbose</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Increase the output level by one with each occurence.
|
|
|
|
<DT><B>-V</B>, <B>--version</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
Display the version number.
|
|
|
|
<I>module</I>
|
|
|
|
|
|
|
|
At least one valid
|
|
|
|
<I>module</I>
|
|
|
|
|
|
|
|
must be specified. A list of valid modules can be found by passing the
|
|
|
|
<B>-l</B>
|
|
|
|
|
|
|
|
option. Multiple
|
|
|
|
<I>module</I>
|
|
|
|
|
|
|
|
arguments can be specified on the command line.
|
2012-10-11 12:17:10 +00:00
|
|
|
Module names are case insensitive, and it is sufficient to specify a
|
|
|
|
unique substring of the module name.
|
2012-06-20 19:58:13 +00:00
|
|
|
</DL>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
|
|
<H2>INDEX SYNTAX</H2>
|
|
|
|
|
|
|
|
One can indicate the start of a list of
|
|
|
|
<B>comma seperated</B>
|
|
|
|
|
|
|
|
indices using a
|
|
|
|
'<B>:</B>'.
|
|
|
|
|
|
|
|
<P>
|
|
|
|
|
2012-10-11 12:17:10 +00:00
|
|
|
The index format is documented when using the <B>--modulehelp</B> option.
|
2012-06-20 19:58:13 +00:00
|
|
|
<A NAME="lbAG"> </A>
|
|
|
|
<H2>OFFENSIVE COMICS</H2>
|
|
|
|
|
|
|
|
Some users may find certain comics offensive and wish to disable them.
|
|
|
|
Modules listed in
|
|
|
|
<B>/etc/dosage/disabled</B>
|
|
|
|
|
|
|
|
and
|
|
|
|
<B>~/.dosage/disabled</B>
|
|
|
|
|
|
|
|
will be disabled. These files should contain only one module name per line.
|
|
|
|
<A NAME="lbAH"> </A>
|
|
|
|
<H2>SPECIAL SYNTAX</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
|
|
<DT><B>@</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
This expands to mean all the comics currently in your 'Comics'
|
2012-10-11 12:17:10 +00:00
|
|
|
directory. All other specified comic module names will be ignored.
|
2012-06-20 19:58:13 +00:00
|
|
|
<DT><B>@@</B>
|
|
|
|
|
|
|
|
<DD>
|
|
|
|
This expands to mean all the comics available to Dosage.
|
|
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
|
|
|
|
<B>INDEX SYNTAX</B>
|
|
|
|
|
2012-10-11 12:17:10 +00:00
|
|
|
can not be used with
|
2012-06-20 19:58:13 +00:00
|
|
|
<B>SPECIAL SYNTAX</B>
|
|
|
|
|
|
|
|
<A NAME="lbAI"> </A>
|
|
|
|
<H2>EXAMPLES</H2>
|
|
|
|
|
2012-10-11 12:17:10 +00:00
|
|
|
Retrieve all Mega Tokyo comics:
|
|
|
|
<DL COMPACT><DT><DD>
|
|
|
|
<B>dosage -a megatokyo</B>
|
|
|
|
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
|
|
|
|
Retrieve the current comic of Cyanide and Happiness:
|
2012-06-20 19:58:13 +00:00
|
|
|
<DL COMPACT><DT><DD>
|
2012-10-11 12:17:10 +00:00
|
|
|
<B>dosage cyanideandhappiness</B>
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
|
2012-10-11 12:17:10 +00:00
|
|
|
Retrieve the current strip of all comics in your 'Comics' directory:
|
2012-06-20 19:58:13 +00:00
|
|
|
<DL COMPACT><DT><DD>
|
2012-10-11 12:17:10 +00:00
|
|
|
<B>dosage @</B>
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
|
2012-10-11 12:17:10 +00:00
|
|
|
Retrieve the current strip of every comic that there is a module for:
|
2012-06-20 19:58:13 +00:00
|
|
|
<DL COMPACT><DT><DD>
|
2012-10-11 12:17:10 +00:00
|
|
|
<B>dosage @@</B>
|
|
|
|
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
|
|
|
|
Retrieve the Penny Arcade strip for a given index:
|
|
|
|
<DL COMPACT><DT><DD>
|
|
|
|
<B>dosage pennyarcade:2004-07-22</B>
|
|
|
|
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
Retrieve Calvin and Hobbes strips from a given index going backwards to
|
|
|
|
the beginning until an existing file is found:
|
|
|
|
<DL COMPACT><DT><DD>
|
|
|
|
<B>dosage -c calvinandhobbes:20120722</B>
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
|
|
<H2>ENVIRONMENT</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
|
|
<DT>HTTP_PROXY<DD>
|
|
|
|
<B>mainline</B>
|
|
|
|
|
|
|
|
will use the specified HTTP proxy whenever possible.
|
|
|
|
</DL>
|
|
|
|
<A NAME="lbAK"> </A>
|
|
|
|
<H2>NOTES</H2>
|
|
|
|
|
|
|
|
Should retrieval fail on any given strip
|
|
|
|
<B>mainline</B>
|
|
|
|
|
|
|
|
will attempt to retry. However the retry information is only outputted
|
|
|
|
in the
|
|
|
|
<B>second</B>
|
|
|
|
|
|
|
|
and successive output levels.
|
|
|
|
<P>
|
|
|
|
|
|
|
|
At the time of writing, a
|
|
|
|
<B>complete</B>
|
|
|
|
|
|
|
|
Dosage collection weighs in at around 3.0GB.
|
|
|
|
<A NAME="lbAL"> </A>
|
|
|
|
<H2>RETURN VALUE</H2>
|
|
|
|
|
2012-10-11 12:17:10 +00:00
|
|
|
The return value greater than zero when
|
2012-06-20 19:58:13 +00:00
|
|
|
<DL COMPACT>
|
|
|
|
<DT>•<DD>
|
|
|
|
a program error occurred.
|
|
|
|
<DT>•<DD>
|
|
|
|
comics could not be found or downloaded
|
|
|
|
<DT>•<DD>
|
|
|
|
the program run was aborted with Ctrl-C
|
|
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
|
|
|
|
Else the return value is zero.
|
|
|
|
<A NAME="lbAM"> </A>
|
|
|
|
<H2>BUGS</H2>
|
|
|
|
|
|
|
|
See
|
|
|
|
<I><A HREF="http://trac.slipgate.za.net/dosage">http://trac.slipgate.za.net/dosage</A></I>
|
|
|
|
|
|
|
|
for a list of current development tasks and suggestions.
|
2012-10-11 12:17:10 +00:00
|
|
|
<P>
|
2012-06-20 19:58:13 +00:00
|
|
|
<A NAME="lbAN"> </A>
|
|
|
|
<H2>FILES</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
|
|
<DT><B>/etc/dosage/disabled</B><DD>
|
|
|
|
Disables comic modules on a global scale.
|
|
|
|
<DT><B>~/.dosage/disabled</B><DD>
|
|
|
|
Disables comic modules on a local scale.
|
|
|
|
</DL>
|
|
|
|
<A NAME="lbAO"> </A>
|
|
|
|
<H2>AUTHORS</H2>
|
|
|
|
|
2012-10-11 12:17:10 +00:00
|
|
|
Jonathan Jacobs <<A HREF="mailto:korpse@slipgate.za.net">korpse@slipgate.za.net</A>>
|
|
|
|
<BR>
|
|
|
|
|
|
|
|
Tristan Seligmann <<A HREF="mailto:mithrandi@slipgate.za.net">mithrandi@slipgate.za.net</A>>
|
|
|
|
<BR>
|
|
|
|
|
|
|
|
Bastian Kleineidam <<A HREF="mailto:calvin@users.sourceforge.net">calvin@users.sourceforge.net</A>>
|
|
|
|
<A NAME="lbAP"> </A>
|
|
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
|
|
|
|
Copyright © 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
|
|
|
<BR>
|
2012-06-20 19:58:13 +00:00
|
|
|
|
2012-10-11 12:17:10 +00:00
|
|
|
Copyright © 2012 Bastian Kleineidam
|
2012-06-20 19:58:13 +00:00
|
|
|
<P>
|
|
|
|
|
|
|
|
<HR>
|
|
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
|
|
<DL>
|
|
|
|
<DT><A HREF="#lbAB">NAME</A><DD>
|
|
|
|
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
|
|
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
|
|
<DT><A HREF="#lbAE">OPTIONS</A><DD>
|
|
|
|
<DT><A HREF="#lbAF">INDEX SYNTAX</A><DD>
|
|
|
|
<DT><A HREF="#lbAG">OFFENSIVE COMICS</A><DD>
|
|
|
|
<DT><A HREF="#lbAH">SPECIAL SYNTAX</A><DD>
|
|
|
|
<DT><A HREF="#lbAI">EXAMPLES</A><DD>
|
|
|
|
<DT><A HREF="#lbAJ">ENVIRONMENT</A><DD>
|
|
|
|
<DT><A HREF="#lbAK">NOTES</A><DD>
|
|
|
|
<DT><A HREF="#lbAL">RETURN VALUE</A><DD>
|
|
|
|
<DT><A HREF="#lbAM">BUGS</A><DD>
|
|
|
|
<DT><A HREF="#lbAN">FILES</A><DD>
|
|
|
|
<DT><A HREF="#lbAO">AUTHORS</A><DD>
|
2012-10-11 12:17:10 +00:00
|
|
|
<DT><A HREF="#lbAP">COPYRIGHT</A><DD>
|
2012-06-20 19:58:13 +00:00
|
|
|
</DL>
|
|
|
|
<HR>
|
|
|
|
This document was created by
|
|
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
|
|
using the manual pages.<BR>
|
|
|
|
|
|
|
|
</BODY>
|
|
|
|
</HTML>
|