static void Main(string[] args) { CommandExcute commandExcute = new CommandExcute("sh", "", "test.sh test.txt out.txt"); commandExcute.Excute(); Console.ReadLine(); //Console.ReadLine(); }
public static Task Run() { while (true) { var status = TaskSchedule.Prop(); if (status.Value != null) { CommandExcute commandExcute = new CommandExcute("task1.sh", "sh", status.Value.InFastqPath, status.Value.InRefFaPath, "0", status.Key); Console.WriteLine("开始执行任务:" + status.Key); commandExcute.Excute(); } else { Console.WriteLine("没有任务 "); } Thread.Sleep(10000); } }