
Thanks Susan and Renee for the reply. My actual need is to run a bash script on closing a ticket. It will not change the ticket. Sorry for the initial question being a little confusing. Regards, Haynes -----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Susan Dittmar Sent: Thursday, August 29, 2013 2:57 PM To: User questions and discussions about OTRS. Subject: Re: [otrs] 'Ticket Commands' I guess you misunderstood the question, Renee. If I read the question correctly, it's meant as "can I have GenericAgent perform a bash script on the ticket?". Haynes, I can't give an answer to the rephrased problem as above. If I misread and it's just the question of executing the GenericAgent from a bash script, that's easy. On my very old install of OTRS (so the commands may have different name now) I copied the GenericAgent.pm to a specialized version only run from bash from time to time (as opposed to every 20 minutes via cron, as the standard GenericAgent is). I called it GenericAgentPurgeOld.pm (remember to change the package directive in the perl module accordingly). Then I call the GenericAgent with this module via /opt/otrs/bin/GenericAgent.pl -c 'Kernel::Config::GenericAgentPurgeOld' -d 1 If that does not answer your question, could you elaborate a bit on what you want to accomplish? What information does the bash script need to be told, and when exactly should it be called? Will the script change the ticket, and will there be anything else done with the same ticket afterwards? Hope that helps, Susan Renee B schrieb:
You can run any command line command. So your cmd could look like "/usr/bin/bash /path/to/your_script.sh".
- Renée
On 29.08.2013 10:21, haynes.davis@accenture.com wrote:
What are the valid values possible in 'Ticket Commands' while creating a job in 'Generic Agent'. Can we run bash scripts using this feature? I was looking to run some custom scripts while closing a ticket. Is this possible? Your help is appreciated.
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. ______________________________________________________________________________________ www.accenture.com