incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: Calling Couch using remote shell
Date Tue, 10 Jan 2012 18:01:17 GMT
Hi,

Try

couch_task_status:all().
or
gen_server:call(couch_task_status, all).

B.

On 10 January 2012 17:56, Julien Gagnet <julien.gagnet@gmail.com> wrote:
> Hi,
>
> We've been playing recently with the remote shell capability of
> erlang. It can become quite useful to kill an anoying process. Could
> it be possible to call some of the exposed method within a remote
> shell.
>
> We've tried a simple without much success:
>  gen_server:call(couch_task_status, {all}).
>
> And we are getting:
> ** exception exit: {{function_clause,[{couch_task_status,handle_call,
>
> [{all},{<0.206.0>,#Ref<0.0.0.858>},nil]},
>                                      {gen_server,handle_msg,5},
>                                      {proc_lib,init_p_do_apply,3}]},
>                    {gen_server,call,[couch_task_status,{all}]}}
>     in function  gen_server:call/2
>
>
> Are we doing something wrong?
>
> We are definitly within the couch vm, looking at the i(). give us all
> the couch process.
>
> Thanks for your help,
>
> Regards,
>
> Julien

Mime
View raw message