I ended up hacking around this with the following Perl script. It uses expect to script an interactive amulecmd session. It's a hack but it should work until the package maintainers can fix the actual bug.
#!/usr/bin/perl
#
use strict;
use Expect;
# create an Expect object by spawning another process
my $cmd = "amulecmd -P=XXXXXXXXXXXXXXX";
my $exp = Expect->spawn("$cmd",())or die "Cannot spawn $cmd: $!\n";
# send some string there:
$exp->send("results\n");
$exp->send("download $ARGV[0]\n");
$exp->send("Quit\n");
$exp->soft_close();
$exp->hard_close();
exit 0;
> Date: Tue, 7 Apr 2009 04:52:14 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 190850] Re: amulecmd download does not work with -c
>
> UPDATE: I've just tried upgrading to 2.2.4 with the same results. I
> can pass searches and pull results, but can not tell amuled to start
> downloading. It would seem a little pointless to be able to do the
> others and not be able to do that.
>
> --
> amulecmd download does not work with -c
> https://bugs.launchpad.net/bugs/190850
> You received this bug notification because you are a direct subscriber
> of the bug.
FYI,
I ended up hacking around this with the following Perl script. It uses expect to script an interactive amulecmd session. It's a hack but it should work until the package maintainers can fix the actual bug.
#!/usr/bin/perl
#
use strict;
use Expect;
# create an Expect object by spawning another process
my $cmd = "amulecmd -P=XXXXXXXXXXXX XXX";
my $exp = Expect- >spawn( "$cmd", ())or die "Cannot spawn $cmd: $!\n";
# send some string there: "results\ n"); "download $ARGV[0]\n"); "Quit\n" );
$exp->send(
$exp->send(
$exp->send(
$exp->soft_close();
$exp->hard_close();
exit 0;
> Date: Tue, 7 Apr 2009 04:52:14 +0000 /bugs.launchpad .net/bugs/ 190850
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 190850] Re: amulecmd download does not work with -c
>
> UPDATE: I've just tried upgrading to 2.2.4 with the same results. I
> can pass searches and pull results, but can not tell amuled to start
> downloading. It would seem a little pointless to be able to do the
> others and not be able to do that.
>
> --
> amulecmd download does not work with -c
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
_______ _______ _______ _______ _______ _______ _______ _______ _______ __ windowslive. com/RediscoverH otmail? ocid=TXT_ TAGLM_WL_ HM_Rediscover_ Updates1_ 042009
Rediscover HotmailĀ®: Get quick friend updates right in your inbox.
http://