This may sound stupid.. so bear with me for a moment. Assuming the only access I have to a machine is through asterisk -rx can I use the ! command? asterisk -rx help includes the ! command, but I can't seem to get it to work ie: asterisk -rx "! ls" Any help?
On 8/4/07, Matt wrote:> This may sound stupid.. so bear with me for a moment. > > Assuming the only access I have to a machine is through asterisk -rx > can I use the ! command? > > asterisk -rx help > > includes the ! command, but I can't seem to get it to work ie: > > asterisk -rx "! ls" > > Any help?asterisk -rx `! ls > myout.txt` will save the output in myout.txt asterisk -rx "`! ls`" will give the command output sandwiched between * msgs. reduce *'s verbosity and you may have what you need. --
On Sat, Aug 04, 2007 at 09:16:22PM -0400, Matt wrote:> This may sound stupid.. so bear with me for a moment. > > Assuming the only access I have to a machine is through asterisk -rx > can I use the ! command? > > asterisk -rx help > > includes the ! command, but I can't seem to get it to work ie: > > asterisk -rx "! ls"What do you need that for? '!' is pointless with asterisk -rx: with asterisk -r, '!' runs a local command in a subshel (or starts a new subshell) by the local cleint asterisk. It does nothing by the server. So you might as well just run: ls -- Tzafrir Cohen icq#16849755 jabber:tzafrir at jabber.org +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir