直接贴出代码,实现执行lua脚本的方法,用到的第三方类库是 StackExchange.Redis(nuget上有) 注:下面的代码是简化后的,实际使用要修改, using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; using StackExchange.Redis; namespace TL.Cloud.KV { pub
//杀Excel进程 String line def p = "taskkill /F /IM EXCEL.exe".execute() def bri = new BufferedReader (new InputStreamReader(p.getInputStream())) while ((line = bri.readLine()) != null) {log.info line}
CREATE OR REPLACE FUNCTION copyData() RETURNS boolean AS $BODY$ DECLARE i int; begin i :=1; FOR i IN 1..9 LOOP copy tb4_20130109012 to '/mnt/ramfs/weibo.tb4001w'; copy tb4_20130109012 from '/mnt/ramfs/weibo.tb4001w'; RAISE NOTICE 'i IS %', i; END LOO