Return-Path: X-Original-To: apmail-incubator-connectors-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-connectors-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 38CE7807A for ; Mon, 8 Aug 2011 22:24:02 +0000 (UTC) Received: (qmail 42248 invoked by uid 500); 8 Aug 2011 22:24:02 -0000 Delivered-To: apmail-incubator-connectors-dev-archive@incubator.apache.org Received: (qmail 42161 invoked by uid 500); 8 Aug 2011 22:24:01 -0000 Mailing-List: contact connectors-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: connectors-dev@incubator.apache.org Delivered-To: mailing list connectors-dev@incubator.apache.org Received: (qmail 42151 invoked by uid 99); 8 Aug 2011 22:24:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 22:24:01 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [199.85.212.11] (HELO jdz1.dailyrazor.com) (199.85.212.11) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 22:23:53 +0000 Received: from [38.107.245.194] (port=21639 helo=[172.16.11.58]) by jdz1.dailyrazor.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1QqYEO-00018N-6W for connectors-dev@incubator.apache.org; Mon, 08 Aug 2011 17:23:32 -0500 Message-ID: <4E4061E3.9010500@farzad.net> Date: Mon, 08 Aug 2011 17:23:31 -0500 From: Farzad Valad User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: connectors-dev@incubator.apache.org Subject: Re: Reseting Manifoldcf References: <4E3961C2.5050300@farzad.net> <4E400953.5050501@farzad.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - jdz1.dailyrazor.com X-AntiAbuse: Original Domain - incubator.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - farzad.net X-Virus-Checked: Checked by ClamAV on apache.org Thanks for the link. I was readying chapter 3 of the book. So I'm issuing the command with what I think is the 4 basic parms it needs, but I keep getting the Usage statement. The code says "if (args.length < 4)" and I'm counting 4 parms, what gives? processes\script\executecommand.bat org.apache.manifoldcf.crawler.DefineRepositoryConnection FileShare FileShare org.apache.manifoldcf.crawler.connectors.filesystem.FileConnector 30 Usage: DefineRepositoryConnection = ... On 8/8/2011 11:11 AM, Karl Wright wrote: > Hi Farzad, > > Either the api service or the command are, I believe, capable of doing > all of these. > > Have a look at this link for some idea of how to do either of these. > > http://incubator.apache.org/connectors/programmatic-operation.html > > Karl > > On Mon, Aug 8, 2011 at 12:05 PM, Farzad Valad wrote: >> I took sometime to read and learn about the API service. Here are the >> specifics, I want to be able to do the following with one invocation of >> something, is that doable? Prefer a batch file, but understand if I have to >> use something else. >> >> 1) Delete any jobs in the system (Purpose: Clear out my data stored in my >> connector db table) >> 2) Delete the repository connector (Purpose: Clear out the stored logs) >> 2) Delete the output connector (Purpose: Clear out the stored logs) >> 3) Unregister my connector (Purpose: Zap the db table) >> 4) Reregister my connector >> 5) Define the repository connector >> 6) Define the output connector >> 7) Define a job waiting to start. >> >> >> On 8/3/2011 10:03 AM, Karl Wright wrote: >>> Can you clarify what you mean by "user data"? There's no such data >>> stored by ManifoldCF in any kind of persistent way. >>> >>> There are command-line "commands" which clear out various kinds of >>> things like jobs and connections. There's also the ManifoldCF API >>> Service. But I can't help further unless you are more specific. >>> >>> Karl >>> >>> On Wed, Aug 3, 2011 at 10:57 AM, Farzad Valad wrote: >>>> What would be the sequence of commands to automate to reset ManifoldCF >>>> and >>>> flush out user data? I've been doing it through the UI and it is very >>>> tedious. Much rather have a batch file to do the job. Thanks! >>>> >>