#!/usr/bin/perl use strict; use local::db; my $dl_id = $ARGV[0] or die "missing argument download id"; my $dl = local::db::download->retrieve($dl_id) or die 'cannont find download'; $dl->completed(1); $dl->update; exit 0;