终于给这输入法整好了,就像上面图里那样执行命令就行
写一个开机自启的脚本会更方便,每次都运行也挺烦的
补充了一键运行脚本,文件路径需要自己修改
#!/bin/bash
run_per_prog="sudo /home/d0/ubuntu-drclient-64/DrClient/privillege.sh"
run_main_prog="sudo /home/d0/ubuntu-drclient-64/DrClient/DrClientLinux"
$run_per_prog
status1=$?
if [ $status1 -eq 0 ]; then
echo -e "\033[34m[+] per_proc ran succeddfully\033[0m"
else
echo -e "\033[31m[-] per_proc failed\033[0m"
fi
$run_main_prog
status2=$?
if [ $status2 -eq 0 ]; then
echo -e "\033[34mmain_proc ran successfully\033[0m"
else
echo -e "\033[31m[-] main_proc failed\033[0m"
运行的结果就像下面这样,这里我的客户端已经在运行了,主程序显示失败