Questions tagged [clish]

A modular framework for implementing a CISCO-like CLI on a *NIX system. Arbitary command menus and actions can be defined using XML files. This software handles the user interaction, and forks the appropriate system commands to perform any actions.

Useful links

7 questions
2
votes
2 answers

right square bracket in regex, can't be escaped?

I am using clish and regular expressions for parameter entry. http://clish.sourceforge.net/clish-0.7.3/group__clish__ptype.html I am whitelisting characters like so: …
Paul
  • 5,756
  • 6
  • 48
  • 78
1
vote
1 answer

klish/clish: set startup timeout tag using internal VAR

I'm trying to set klish startup timeout tag using a defined internal VAR but it's not working. echo -n "60"
neoben
  • 743
  • 12
  • 30
1
vote
1 answer

klish command completion on pressing tab button

Hi I have small doubt in klish xml file. I implemented a small xml file for klish echo "core status" I thought that by using command "show…
vivek
  • 467
  • 2
  • 6
  • 18
1
vote
3 answers

klish - dynamic variables and completion

I am writing an xml file in klish. I want to know how can we auto complete an parameter by pressing tab button in klish xml files. For E.g. I want user to enter either enable or disable on klish command line but if user press 'e' and tab then…
vivek
  • 467
  • 2
  • 6
  • 18
0
votes
1 answer

klish server start failing with latest 3.0.0

Posting here as I didn't hear back anything on the mailing list here. On Ubuntu 20.04.5 LTS, built the latest version 3.0.0 of klish git clone https://src.libcode.org/pkun/faux.git cd faux ./autogen.sh && ./configure && make && sudo make install cd…
Saurabh
  • 1
  • 1
0
votes
1 answer

Deny sql queries in string argument for a clish command

If possible I would like to have clish to rewrite any arguments that are not safe to inject in an sql query. Similar to doing for example mysql_real_escape_string in php. From clish we are calling bashscripts that sometimes injects the arguments…
Eliazz
  • 1
  • 2
0
votes
1 answer

How to complete a command by pressing tab button in klish

I am working on klish xml files. How should I autocomplete a command on klish. Please answer it with an example.
vivek
  • 467
  • 2
  • 6
  • 18