X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=c5019aabedd588ae29b4656c5d912dee2a575fdf;hb=70b6eca73431e3cec68c93096de4fb02378c7ae6;hp=a8ec761434e90a38f34ce67149871178e622a3bd;hpb=77c5a4fca8b516fd39b8ba213daed17a465a6b2a;p=yaz-moved-to-github.git diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index a8ec761..c5019aa 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -148,6 +148,15 @@ static int cmd_get(ZOOM_connection *c, ZOOM_resultset *r, return 0; } +static int cmd_shell(ZOOM_connection *c, ZOOM_resultset *r, + ZOOM_options options, const char **args) +{ + int ret = system(*args); + if (ret) + printf("system command returned %d\n", ret); + return 0; +} + static int cmd_rget(ZOOM_connection *c, ZOOM_resultset *r, ZOOM_options options, const char **args) @@ -401,6 +410,12 @@ static int cmd_ext(ZOOM_connection *c, ZOOM_resultset *r, int ret = 0; WRBUF ext_type_str = next_token_new_wrbuf(args); + if (!ext_type_str) + { + printf("es: missing type " + "(itemorder, create, drop, commit, update, xmlupdate)\n"); + return 1; + } for (i = 0; i\n"); printf("set