X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=c5019aabedd588ae29b4656c5d912dee2a575fdf;hb=1d373de015fe24656f8fb7e4ff5edb3c2087085d;hp=238c3d9799baf6382558cdf91737bfb9771cd5e0;hpb=dcd0fca49ff6765fc01a2c0e13191c0453a7e422;p=yaz-moved-to-github.git diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 238c3d9..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