Unsolved
This post is more than 5 years old
17 Posts
0
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.
No Events found!
holgerjakob_c0722c
2 Intern
•
337 Posts
0
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
mckeown_paul
409 Posts
0
December 7th, 2009 12:00
hansenfs
1 Message
0
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
holgerjakob_c0722c
2 Intern
•
337 Posts
0
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
mkochans
1 Rookie
•
17 Posts
0
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
gstuartemc
2 Intern
•
417 Posts
0
June 28th, 2010 11:00
By using normal operating system input redirection i.e. the "<" operator.
Regards, Graham L. Stuart
Centera SDK Architect
mkochans
1 Rookie
•
17 Posts
0
June 29th, 2010 05:00
Tried it, doesn't work. I'll play around with it some more.
MK
gstuartemc
2 Intern
•
417 Posts
0
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