From 724bfb5a21f55b25015c559e88651612f889bb13 Mon Sep 17 00:00:00 2001 From: cvs Date: Wed, 5 Apr 2000 08:44:22 +0000 Subject: [PATCH] removed --- tecs/tcli.c | 53 ----------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 tecs/tcli.c diff --git a/tecs/tcli.c b/tecs/tcli.c deleted file mode 100644 index af667346..00000000 --- a/tecs/tcli.c +++ /dev/null @@ -1,53 +0,0 @@ -#include -#include -#include "tecc.h" -#include "errhdl.h" - -/*-------------------------------------------------------------------------*/ - -main(int argc, char *argv[]) -{ - char response[80], cmd[80], device[80]; - float val; - pTecsClient conn; - char *res; - -#ifdef __VMS - ERR_P(conn=TeccInit("@start_tecs test -p 9753 -l -d ud0:[zolliker.lsc.log]", 9753)); -#else - ERR_P(conn=TeccInit("TecsServer -p 9753 -l -d log/ &", 9753)); -#endif - -retry: - while (1) { - scanf("%s", cmd); - if (0==strcmp(cmd,"r")) { - ERR_I(TeccGet(conn, &val)); - ERR_P(res=TeccGetDev(conn)); - printf("T=%f %s\n", val, res); - - } else if (0==strcmp(cmd,"s")) { - - scanf("%f", &val); - ERR_I(TeccSet(conn, val)); - - } else if (0==strcmp(cmd,"c")) { - - scanf("%s", cmd); - ERR_I(TeccSend(conn, cmd, response, sizeof(response))); - printf("%s\n", response); - - } else if (0==strcmp(cmd,"d")) { - - scanf("%s", cmd); - ERR_I(TeccSetDev(conn, cmd)); - - } else if (0==strcmp(cmd,"q")) { - - TeccClose(conn); - exit(1); - - } - } - OnError: ErrShow("Client"); goto retry; -}