On Tue, Jan 12, 2016 at 11:30:08AM +0000, Arash Shams wrote:
exec sendwelsms { wait = no program = "/root/sendsms.sh '%{User-Name} %{Huntgroup-Name}'" input_pairs = request shell_escape = yes output = file }
i passed %{User-Name} as $1 and %{Huntgroup-Name} as $2 to that script .
From the above quoting it looks like you passed "%{User-Name} %{Huntgroup-Name}" as $1 into the script.
now its not working any suggestion ?
What does the debug log say? I suspect your program setting needs to be something more like program = "/bin/sh -c '/root/sendsms.sh %{User-Name} %{Huntgroup-Name}'" untested - you probably want correctly escaped quotes around the parameters. Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>