Author: sparky Date: Sun Jun 27 01:23:37 2010 New Revision: 11600 Modified: toys/rsget.pl/README.config Log: - added some postdownload examples
Modified: toys/rsget.pl/README.config ============================================================================== --- toys/rsget.pl/README.config (original) +++ toys/rsget.pl/README.config Sun Jun 27 01:23:37 2010 @@ -60,6 +60,30 @@ # move finished downloads to "done" outdir = done +# Execute shell command after finishing file download. +# Will not block, stdin and stdout are ignored. +# Recognized special variables: +# $(name) - name of the file +# $(file) - path to the file (including outdir), use $PWD/$(file) if you +# need full path and your outdir is relative +# $(source) - source uri +# $(size) - file size in bytes +# All those variables are automatically quoted, so you _must__not_ quote them. +# Examples: +# * send nice dbus org.freedesktop.notifications message (some notification +# deamons may not support those html tags): +#postdownload = notify-send "rsget.pl: "$(name) "Finished downloading <a href='$PWD/"$(file)"'>"$(name)"</a> (size: <b>"$(size)"B</b>) from <tt>"$(source)"</tt>" +# +# * copy your file somewhere else: +#postdownload = scp $(file) remote_machine:my_downloads +# +# * unpack and delete if successful +# <http://github.com/sparky/home/blob/master/bin/spill>: +#postdownload = spill -c $(file) +# +# * execute your own script which does anything you want: +#postdownload = ${HOME}/bin/postdownload $(file) $(source) || notify-send "rsget.pl: "$(name) "postdownload failed" + # update automatically from SVN (possibly dangerous, but very convenient): #use_svn = update _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
