Start a Conversation

Unsolved

This post is more than 5 years old

6529

October 22nd, 2009 12:00

Delete large number of objects from text file list

I am working with an application that doesn't delete in its implementation of the SDK, I need to delete a list of objects that I can dump to a text file from the apps database. I don't see a way that I can use that with JCASScript, is there a scripting tool that I can use a text file to drive the deletion of a large number of objects.

2 Intern

 • 

337 Posts

October 28th, 2009 23:00

Hi Jack

There used to be the Centera CLI Tools that would allow to do that. Please let me know on holger.jakob@informatio.ch if you need a copy of the toolset. This is not supported by anyone anymore.

Holger

409 Posts

December 7th, 2009 12:00

YOu will need to use jcasscript to do this and you will need to wrap the jcasscript session with a script that pushes the commands into the standard input of the jcasscript session

1 Message

December 7th, 2009 12:00

Hi Jakob ...

          I am trying to accomplish the same thing. Delete a large number of clip id's from a text file. What centera tool set allows you to do it? I looked at centera viewer and the centera  CLI and could not find anything. I also looked at the SDK and there's an FPClip_Delete function listed in the API ref guide but I can't find any info on how to run that against a text file.

Thanks!

Frode Hansen

hansenfs@corning.com

2 Intern

 • 

337 Posts

December 7th, 2009 22:00

Hi Frode

The CLI Tools are no longer available. We could develop the functionality you require if your need it regularly. Alternatively follow the path Paul mentions.

Holger

1 Rookie

 • 

17 Posts

June 28th, 2010 10:00

Are you suggesting running jcasscript inside a shell script?  If yes, I understand this part.  But, how do I push the input file to the jcasscript?  This part eludes me.

TIA,

Mark

2 Intern

 • 

417 Posts

June 28th, 2010 11:00

By using normal operating system input redirection i.e. the "<" operator.

Regards, Graham L. Stuart

Centera SDK Architect

1 Rookie

 • 

17 Posts

June 29th, 2010 05:00

Tried it, doesn't work.  I'll play around with it some more.

MK

2 Intern

 • 

417 Posts

June 29th, 2010 07:00

It should work Mark, I have done it many times.

The entire input has to be in the file so it should start off with

poolOpen connectionstring

Then loads of lines with

clipDelete contentaddress

Then finish off with

poolClose

Regards, Graham L. Stuart

Centera SDK Architect

No Events found!

Top