私の.screenrcから一連のコマンドをGNUスクリーン・ウィンドウに送る方法はありますか?行うのは簡単なはずのように思える:GNUのコマンドを実行します。スクリーン・ウィンドウ.screenrcから
.screenrcの:私はスクリーンのmanページ、数回にわたり行ってきたが、<send command to last created window>
意志何かを見つけることができません
startup_message off
screen -t "RAILS SERVER"
<send command to last created window> <my alias to cd Rails project>
<send command to last created window> rails s
screen -t "RAILS CONSOLE"
<send command to last created window> <my alias to cd to Rails project>
rails c
。
おかげで、 マックス
私はこれを試しました: 'screen -t" BLAH "sh -c" cd〜/ .ssh "' 'screen'を走らせるとすぐに終了しました。 – maxenglander
もちろんそれはしました。 'cd'コマンドは非常に素早く終了します。私が提案したコマンドを試してみてください。 –
素晴らしい!私は、 '-c'で渡された文字列の実行が終了した後にbashが終了することを知りませんでした。 – maxenglander