bitbar調(diào)用rdesktop進行遠程連接

很多時候,rdesktop缺乏一個好用的遠程管理連接,不用每次輸入ip地址、密碼,bitbar正好滿足了這個需求。

image.png

~/Documents/rdesktop.txt樣式如下:

Host JSWP風力發(fā)電網(wǎng)  rdesktop -g 1024x768 -u administrator -p mypassword -r clipboard:CLIPBOARD   210.2.2.2

bitbar調(diào)用rdesktop進行遠程連接

#!/usr/bin/env bash
#
# Quickly rdesktop to your favorite hosts
# The list of hosts are extracted from ~/Documents/rdesktop.txt
#
# <bitbar.title>rdesktop</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Jianhui</bitbar.author>
# <bitbar.author.github>zhangyc</bitbar.author.github>
# <bitbar.desc>Quickly rdesktop to your favorite hosts listed in your ~/Documents/rdesktop.txt file</bitbar.desc>
#

echo "微軟遠程"
echo "---"
awk '/^Host / && !/\*/ {print " echo \"rdesktop -g 1024x768 -r clipboard:CLIPBOARD -u administrator  -p  "$9,$12" \">/tmp/rdesktop_"$12  }' ~/Documents/rdesktop.txt | bash
chmod +x /tmp/rdesktop_*

awk '/^Host / && !/\*/ {print $2" | bash=/tmp/rdesktop_"$12" | terminal=true | refresh=true" }' ~/Documents/rdesktop.txt
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Spring Cloud為開發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 136,697評論 19 139
  • Android 自定義View的各種姿勢1 Activity的顯示之ViewRootImpl詳解 Activity...
    passiontim閱讀 179,351評論 25 708
  • 文/沐叁 雖然每日寫作練習一直在以另外的形式展現(xiàn),但沒按照原有的計劃目標進行,也沒收到預(yù)期的效果,總有些令人遺憾。...
    沐叁閱讀 302評論 0 1

友情鏈接更多精彩內(nèi)容