linux
左耳听过流年的声
简单的事,迭代简单的事
展开
-
挂载虚拟can卡
sudo modprobe vcansudo ip link add dev vcan1 type vcansudo ip link set dev vcan1 up原创 2022-01-26 09:44:26 · 224 阅读 · 0 评论 -
在Linux中执行任务脚本
PID=`ps -ef | grep testDemo | grep -v grep | awk '{print $2}'`if [[ ${PID} != "" ]];then echo "任务-testDemo-SNAPSHOT.jar-线程-${PID}-已经存在" echo "关闭任务输入[C],重启任务输入[R],继续请按其它:" read th if [ ${th} = "C" -o ${th} = "c" ] ; then echo.原创 2022-01-17 14:24:36 · 838 阅读 · 0 评论