I think you are executing a Shell Script from a Splunk Alert, and you want to get the search results into that Shell script. The arguments are passed to the script, so you should be able to reference them in the usual ways. See here for a more complete description: http://wiki.splunk.com/Community:Use_Splunk_alerts_with_scripts_to_create_a_ticket_in_your_ticketing...
I think you are executing a Shell Script from a Splunk Alert, and you want to get the search results into that Shell script. The arguments are passed to the script, so you should be able to reference them in the usual ways. See here for a more complete description: http://wiki.splunk.com/Community:Use_Splunk_alerts_with_scripts_to_create_a_ticket_in_your_ticketing...
Your Splunk-alert is saved in Manager>Searches and Reports.
Open it, select the email option, and select Include results in email.
and if I run my own script? stock alerting is not enough...