Re: [Asterisk-java-users] Help with the "!" CLI command via Manager CommandAction.
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2006-08-03 00:10:16
|
Karien Du Preez wrote: > Hi. >=20 > I'm trying to excute a normal shell command like "ls" via the Manager > API using the CommandAction. >=20 > If I type in "! ls" in the CLI command line on asterisk I get a > directory print out. [...] > Why is this the case? I think this is due to the fact that ! simply escapes to the shell you used to connect to the asterisk server. So if you are connected through the Manager API there is no shell to escape to. > Can someone please help? Probably the simplest way is not using the Manager API to run unix commands on Asterisk but stick to ssh. Maybe something like JSch (http://www.jcraft.com/jsch/) =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |