2020年4月24日 星期五

檢查 Pi 系列單片機是否正常運作

將下列文字複製到 check-pi.bat

===================從下列起==================
@Echo off
del act.txt
del na.txt
echo 192.168.1.104 APRX >> act.txt
echo 192.168.1.105 Zero >> act.txt
echo 192.168.1.106 One >> act.txt
echo 192.168.1.107 Zero(白) >> act.txt
echo 192.168.1.108 mail >> act.txt
echo 192.168.1.104 APRX >> na.txt
echo 192.168.1.105 Zero >> na.txt
echo 192.168.1.106 One >> na.txt
echo 192.168.1.107 Zero(白) >> na.txt
echo 192.168.1.108 mail >> na.txt
echo ==========正常連線的設備========== >> act.txt
echo ==========斷線========== >> na.txt
@for /l %%i in (105,1,108) do @ping -n 2 -w 40 192.168.1.%%i& if errorlevel 1 (echo 192.168.1.%%i>>na.txt) else (echo 192.168.1.%%i>>act.txt)
cls
Echo 完成!!
@echo on
notepad act.txt & notepad na.txt

===================自上列起==================

雜七雜八寫一下

  解決卸載失敗問題 “device is busy” umount: /dev/sda1:   device is busy $   fuser -vm /dev/sda1 /dev/sda1  6015c 6132 亦使用命令「 ps auxw | grep  PID 」獲知...