⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tkagent_tool

📁 mobile ip 在linux下的一种实现
💻
字号:
#!/usr/bin/wish# $Id: tkagent_tool,v 1.4 2000/04/06 07:26:53 jm Exp $# Agent Configuration Tool # Dynamic hierarchial IP tunnel# Copyright (C) 1998-2000, Dynamics group# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License version 2 as# published by the Free Software Foundation. See README and COPYING for# more details.if { $argc != 1 } {    puts "Usage: $argv0 <tool_name>"    exit}set tool [lindex $argv 0]wm title . "Dynamics Configuration Tool ($tool)"frame .top -border 5pack .top -side top -fill x# buttonsframe .left -border 10pack .left -side left -fill ybutton .left.statusbutton -text Status -command Statusbutton .left.listbutton -text List -command Listbutton .left.showbutton -text Show -command Showbutton .left.destroybutton -text Destroy -command Destroybutton .left.quitbutton -text Quit -command exitpack .left.listbutton -side top -fill xpack .left.statusbutton -side top -fill xpack .left.showbutton -side top -fill xpack .left.destroybutton -side top -fill xpack .left.quitbutton -side bottom -fill x# resultsframe .resframepack .resframe -side left -fill both -expand yset idlist [listbox .resframe.idlist -width 15]pack $idlist -side left -fill y set restext [text .resframe.restext -width 40 -height 10]pack .resframe.restext -side left -fill both -expand yproc List {} {    global idlist tool    $idlist delete 0 end    set l [split [exec $tool list] \n]    foreach id $l {	if { $id != {} } {	    $idlist insert end $id	}    }}proc ShowText { text } {    global restext    $restext config -state normal    $restext delete 1.0 end    $restext insert end $text    $restext config -state disabled }proc Status {} {    global tool    ShowText [exec $tool status]}proc Show {} {    global idlist restext tool    set id [$idlist get active]    if { $id != {} } {	ShowText [exec $tool show $id]    }}proc Destroy {} {    global idlist tool    set id [$idlist get active]    if { $id != {} } {	ShowText [exec $tool destroy $id]    }    List}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -