Code: Alles auswählen
#Zum server verbinden
ssh user@server << EOT
#Screen öffnen
screen -r myscreen
#und jetzt?
EOT
Code: Alles auswählen
#Zum server verbinden
ssh user@server << EOT
#Screen öffnen
screen -r myscreen
#und jetzt?
EOT
Code: Alles auswählen
~/.bashrc
if [ -z $STY ]; then
/usr/bin/screen -xRR;
exit 0;
fi
Code: Alles auswählen
screen -X exec top
screen -X register q q
screen -X paste q
Code: Alles auswählen
tell application "Terminal"
activate
do script "ssh user@server.net"
delay 2
do script "screen -r myscreen" in window frontmost
delay 2
do script "do something in cui app" in window frontmost
delay 2
end tell
tell application "System Events"
keystroke "a" using control down
keystroke "d"
end tell