first commit: some shell scripts

This commit is contained in:
TangChao
2022-08-22 08:38:59 +00:00
commit 5937333be7
8 changed files with 126 additions and 0 deletions

12
kill_psdk_v2.sh Executable file
View File

@ -0,0 +1,12 @@
#! /bin/bash
psdkpid=$(ps -ef | grep psdk_demo | grep -v grep | awk '{print $2}')
while true ; do
if [ $psdkpid -le 5000 ]; then
#sleep 100s
sudo kill $psdkpid
#echo $psdkpid 'xiaoyu 5000'
fi
done
exit 0