用putty登入工作站後自動執行指令 - Linux

Table of Contents

系統linux bsd都有可能 重點是我只是一個受限的使用者

想透過putty(或類似程式)登入

登入後自動執行

1. shell (站主少數開放的shell)

2. cd

3. source .bashrc (站主不開放自動讀取設定檔, 所以只能手動)


試過 putty 的 remote command、

命令列的 -m

發現都會自動斷線 無法達到需求。


請問putty要怎麼做到? 或是有其他選擇?

--

All Comments

Ina avatarIna2013-03-13
目前是使用puttyCM (connection manager)
Carol avatarCarol2013-03-15
這個很少人使用的程式可達到我需求...
Callum avatarCallum2013-03-17
plink 是你要的嗎
Blanche avatarBlanche2013-03-21
plink我用起來好像和putty一樣...
Tracy avatarTracy2013-03-23
不怕文字的話 可以試試expect/tcl
Valerie avatarValerie2013-03-27
expect-lite 簡單很多
Oliver avatarOliver2013-03-30
Sorry 我每講清楚 我是從windows連的
Frederic avatarFrederic2013-04-03
不過還是謝謝答覆 往後日子說不定還是用得上
Annie avatarAnnie2013-04-04
可以試試teraterm的macro
Thomas avatarThomas2013-04-07
我是用XShell...有看到你要的功能