From a49d775dd9d43bd22cee4c1fd3e32ede0dc2e9c2 Mon Sep 17 00:00:00 2001 From: Michael Homer Date: Fri, 15 Aug 2014 18:56:25 +1200 Subject: Add simple --target example The example downloads any URLs dragged onto the target using wget. --- example/download.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 example/download.sh diff --git a/example/download.sh b/example/download.sh new file mode 100755 index 0000000..4698d38 --- /dev/null +++ b/example/download.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# This toy example uses wget and the --target mode to act +# as a drag-and-drop download tool. + +../dragon --target | while read url +do + wget "$url" +done -- cgit