Hi Community,
I am trying to invoke an sh script that's present in my dispatcher via AEM author. Is this achievable? Are there any customization guide or tools that I can follow to achieve this?
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
You can try,
With an Apache Web Server, You can write a CGI script to intercept your web requests, next from the CGI script, you can call the .sh file.
I don't think there are too many guides out there because this solution seems a bit out of the norm.
You can try,
With an Apache Web Server, You can write a CGI script to intercept your web requests, next from the CGI script, you can call the .sh file.
I don't think there are too many guides out there because this solution seems a bit out of the norm.
hey, at which event you want to call that script? manually or on publish event?
I am assuming you have more than one dispatcher instances and that you will want to invoke shell script on all those dispatcher instances. One of ways is to write a shell script on your author server. That shell script will in turn ssh into all the dispatcher instances and execute the script, you may maintain list of dispatcher instances in that shell script. From AEM author instance, you will be left with invoking a shell script on same server which is an easier task.
Reason i mentioned involving one more script in between your author and dispatcher server is that you will not have to rely on 3rd party libraries for doing remote script execution (using ssh).
Views
Likes
Replies