<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can i invoke the command line shell for Actions like i do for the tranformers? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/can-i-invoke-the-command-line-shell-for-actions-like-i-do-for/m-p/79145#M24632</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general, you can&amp;nbsp;not.&lt;/P&gt;&lt;P&gt;You can only use as shell comands those that depend on external linux commands, which is the method used for some simple extensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;--C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Sep 2018 20:09:19 GMT</pubDate>
    <dc:creator>cesarista</dc:creator>
    <dc:date>2018-09-23T20:09:19Z</dc:date>
    <item>
      <title>Can i invoke the command line shell for Actions like i do for the tranformers?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-i-invoke-the-command-line-shell-for-actions-like-i-do-for/m-p/79144#M24631</link>
      <description>hi, i wonder if there is some "Alfresco way" like some xml configuration to invoke the command line shell for some actions.For example i have a executable jar i foo.jar, there is way in the xml configuration of alfresco to invoke the command "java -jar foo.jar" like i already do for some tranformer</description>
      <pubDate>Sun, 23 Sep 2018 11:56:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-i-invoke-the-command-line-shell-for-actions-like-i-do-for/m-p/79144#M24631</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2018-09-23T11:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can i invoke the command line shell for Actions like i do for the tranformers?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-i-invoke-the-command-line-shell-for-actions-like-i-do-for/m-p/79145#M24632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general, you can&amp;nbsp;not.&lt;/P&gt;&lt;P&gt;You can only use as shell comands those that depend on external linux commands, which is the method used for some simple extensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;--C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Sep 2018 20:09:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-i-invoke-the-command-line-shell-for-actions-like-i-do-for/m-p/79145#M24632</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2018-09-23T20:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can i invoke the command line shell for Actions like i do for the tranformers?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-i-invoke-the-command-line-shell-for-actions-like-i-do-for/m-p/79146#M24633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actions are just Java classes, so if you need to invoke a Java class from an action, write an Action using Java that invokes the public methods in the Java class. (In other words, it doesn't make sense to do "java -jar" from an Action because you are already in Java.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really just want to run shell commands from an Action, then write an Action using Java that uses the Runtime and Process classes to do that. Note that there are many reasons you should think twice before doing something like that, not the least of which is the security implications and the reduced portability of your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 03:31:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-i-invoke-the-command-line-shell-for-actions-like-i-do-for/m-p/79146#M24633</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-09-25T03:31:06Z</dc:date>
    </item>
  </channel>
</rss>

