Moxa V2416-T-LX Руководство по программной части (Linux) онлайн [54/88] 171075

Moxa V2416-T-W7E Руководство по программной части (Linux) онлайн [54/88] 171079
V2416 Linux User's Manual Managing Communications
3-30
2. Stop the daemon and prepare to remove the disk when button 1 is pressed shorter than 5 seconds. In the
action_btn_short_pressed file, you should kill the problem before the disk is umounted.
#!/bin/sh
file=`basename $0`
num=$1
#Add your commands here
kill -9 `pidof -x log_application`
#Internal operation
mxhtspd-remove-disk $num
Because log_application is executed by the shell, you can use pidof -x” to get its pid.

Содержание

Похожие устройства

Скачать