Update __init__.py

pull/109/head
Mr Chen 6 years ago
parent ac86faaf49
commit 653be31440
  1. 3
      route/__init__.py

@ -241,11 +241,12 @@ def clear_ssh():
PLIST=`who | grep localhost | awk '{print $2}'` PLIST=`who | grep localhost | awk '{print $2}'`
for i in $PLIST for i in $PLIST
do do
echo $i
ps -t /dev/{$i} |grep -v TTY|awk '{print $1}' | xargs kill -9 ps -t /dev/{$i} |grep -v TTY|awk '{print $1}' | xargs kill -9
done done
''' '''
if not public.isAppleSystem(): if not public.isAppleSystem():
public.execShell(sh) print public.execShell(sh)
def connect_ssh(): def connect_ssh():

Loading…
Cancel
Save