-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
eric-zhou
committed
Oct 30, 2014
1 parent
331fb2e
commit 6947793
Showing
2 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,10 @@ get_port() | |
|
||
|
||
run() { | ||
# 添加转菊花效果 -- 阿耀 2014-10-29 | ||
loadingapp $PWD/loading.conf & | ||
local pid=$! | ||
|
||
# 随机取得端口 | ||
get_port; | ||
local port=$port_result | ||
|
@@ -59,6 +63,9 @@ run() { | |
$SSH -i $KEY_FILE -o UserKnownHostsFile="$KNOWN_HOSTS" \ | ||
-g -NfR *:$port:*:22 [email protected] | ||
|
||
# 停止转菊花 | ||
kill $pid | ||
|
||
messagebox 远程协助 "远程协助已开启,服务序号$port。 | ||
请在结束协助后点击结束退出远程协助。" 1 结束 "killall ssh" | ||
} | ||
|
Binary file not shown.