Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BEFB2B06F for ; Tue, 10 Jan 2012 18:01:21 +0000 (UTC) Received: (qmail 52494 invoked by uid 500); 10 Jan 2012 18:01:19 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 52445 invoked by uid 500); 10 Jan 2012 18:01:19 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 52437 invoked by uid 99); 10 Jan 2012 18:01:18 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2012 18:01:18 +0000 Received: from localhost (HELO mail-gy0-f180.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2012 18:01:18 +0000 Received: by ghrr20 with SMTP id r20so2615385ghr.11 for ; Tue, 10 Jan 2012 10:01:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.187.226 with SMTP id fv2mr2894260igc.20.1326218477182; Tue, 10 Jan 2012 10:01:17 -0800 (PST) Received: by 10.42.243.67 with HTTP; Tue, 10 Jan 2012 10:01:17 -0800 (PST) In-Reply-To: References: Date: Tue, 10 Jan 2012 18:01:17 +0000 Message-ID: Subject: Re: Calling Couch using remote shell From: Robert Newson To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, Try couch_task_status:all(). or gen_server:call(couch_task_status, all). B. On 10 January 2012 17:56, Julien Gagnet 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: > =A0gen_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]}, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0{gen_server,handle_msg,5}, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0{proc_lib,init_p_do_apply,3}]}, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{gen_server,call,[couch_task_statu= s,{all}]}} > =A0 =A0 in function =A0gen_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