[Freeswitch-users] feature idea for fs_cli

Mitch Capper mitch.capper at gmail.com
Wed Aug 27 19:50:39 MSD 2014


This would be fairly easy to implement into
https://wiki.freeswitch.org/wiki/Fs_logger.pl  and functionality could be
similar to mysql (pager command to turn it on and nopager to turn it off).
fs_logger.pl does input parsing and could easily pipe the output through a
third party program.  There is a limitation to using fs_logger.pl to do so:
It doesn't know when a command finishes, it grabs blocks of output in 2048
char segments in a non blocking manner.  This could theoretically mean the
output of a command  could be past to the pager over multiple calls (rather
than a single call that I believe mysql uses).

~Mitch




On Tue, Aug 26, 2014 at 2:16 AM, Steven Ayre <steveayre at gmail.com> wrote:

> Of course the pipe character would be a bad choice, as it'd interact with
> dialstrings badly.
>
>
> On 26 August 2014 09:00, Steven Ayre <steveayre at gmail.com> wrote:
>
>> If anything the ability to pipe through external tools like grep from
>> within a fs_cli session could be useful - it'd minimise the work required
>> to implement it. Kind of like the pager command in the mysql cli. Building
>> such functionality into fs_cli or mod_event_socket directly doesn't make
>> sense when it already exists elsewhere though.
>>
>>
>> On 25 August 2014 20:22, Brian West <brian at freeswitch.org> wrote:
>>
>>> fs_cli -x 'show channels' | grep something
>>>
>>> :P
>>>
>>>
>>> On Mon, Aug 25, 2014 at 1:52 PM, Nathan Neulinger <nneul at mst.edu> wrote:
>>>
>>>> In fs_cli, would be cool to have cisco-like extensions to support
>>>> include/exclude/begin:
>>>>
>>>>         show channels | include regex
>>>>         show channels | exclude regex
>>>>         show channels | begin regex
>>>>
>>>> It's obviously not always going to generate useful output (particularly
>>>> since it will usually strip header), but can be
>>>> very helpful when doing interactive diagnostics.
>>>>
>>>>
>>>> http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/fundamentals/configuration/15_sy/fundamentals-15-sy-book/cf-cli-search.html
>>>>
>>>> -- Nathan
>>>>
>>>> ------------------------------------------------------------
>>>> Nathan Neulinger                       nneul at mst.edu
>>>> Missouri S&T Information Technology    (573) 612-1412
>>>> System Administrator - Architect
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://confluence.freeswitch.org
>>>> http://www.cluecon.com
>>>>
>>>> 
>>>> 
>>>>
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:
>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> http://www.freeswitch.org
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> *Brian West*
>>> brian at freeswitch.org
>>>
>>>
>>> *Twitter: @FreeSWITCH , @briankwest*
>>> http://www.freeswitchbook.com
>>> http://www.freeswitchcookbook.com
>>>
>>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
>>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> 
>>> 
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 
> 
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140827/ee9a729b/attachment-0001.html 


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