我會發現'ps'命令的輸出是否包含進程'smtpd' 問題是,各種busybox需要不同的ps命令! 有些需要'PS X',其他需要'PS W'和其他只有'PS' 我怎麼能做出一個通用算法來嘗試所有'PS'的可能性? 例子: linex=''
foo=os.popen('ps')
for x in foo.readlines():
if x.lower().find('smtpd')
我想解析一個模式,並從中讀取一個元素,但是我收到一個錯誤。 這是我的代碼: using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.IO;
using Newtonsoft.Json.Schema;
na