Comment 6 for bug 190850

Revision history for this message
chackoc (cherackal) wrote : RE: [Bug 190850] Re: amulecmd download does not work with -c

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=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.

_________________________________________________________________
Rediscover HotmailĀ®: Get quick friend updates right in your inbox.
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Updates1_042009