[Freeswitch-users] Problem with X-PRE-PROCESS cmd="exec" and recursive wget

Victor Chukalovskiy victor.chukalovskiy at gmail.com
Thu Nov 7 00:26:14 MSK 2013


Greetings,

I need to grab content of all .xml files in a dir recursively with wget. 
My test folder contains context1.xml and context2.xml. I do the 
following in freeswitch.xml:

<X-PRE-PROCESS cmd="exec" data="wget -r -l 1 -np -nd -A xml -q -O - 
ftp://myhost/"/>
Problem: it does not insert any lines after I "reloadxml" and check in 
freeswitch.xml.fsxml

If I run the same from terminal wget returns lines that I expect:
[victor at hostname]# wget -r -l 1 -np -nd -A xml -q -O - ftp://myhost/
<context name="context1">
</context>
<context name="context2">
</context>
[victor at hostname]#

So, I'm puzzled why FS does not pick-up what "wget -r" writes into 
stdout? Or does it? :-)

For comparison, X-PRE-PROCESS works with the same files requested 
non-recursively:
<X-PRE-PROCESS cmd="exec" data="wget  -q -O - ftp://myhost/context1.xml"/>
<X-PRE-PROCESS cmd="exec" data="wget  -q -O - ftp://myhost/context2.xml"/>

Thank you,
Victor



Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list