作者:cobranail
用于对小型的wm比如twm,5dwm等确认,用到了程序
源码:
=========================================
#!/bin/csh -f
xconfirm -B ok -B Resume -t 'Power OFF!'>&/var/tmp/XCONFIRMS
set XCONFIRMS = `cat /var/tmp/XCONFIRMS |egrep Continue `
switch ("$XCONFIRMS")
case Continue:
rm /var/tmp/XCONFIRMS
exec "poweroff"
breaksw
case Resume:
rm /var/tmp/XCONFIRMS
breaksw
default:
breaksw
endsw
========================================
阅读(1116) | 评论(0) | 转发(0) |