Hi,
Im done with my code using CMIS GroovyConsole, how to
make it into shell script? so that it can be executed automatically?
When I've tried to make it into an executable batch file it prompts an error. Is it correct? or is there anther way ?
First, make sure you have Groovy installed. Can you do groovy CMISEXTRACTIONTEXT.groovy, for example?
If you want to make the file executable you can add "#!/usr/bin/groovy" to the first line of your script. Then make sure you've granted "execute" permissions to the file with chmod u+x CMISEXTRACTIONTEXT.groovy. Now you should be able to run ./CMISEXTRACTIONTEXT.groovy.
One thing to be aware of...in the Groovy Console in CMIS Workbench there are a few imports and utility scripts that get imported so you'll want to make sure those are accessible by your script if your script depends on them.
Hi Jeff Potts ,
What's the error all about? Thanks
Jeff Potts what if it's dependent in the WORKBENCH, is there a possible to execute this automatically?
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.