After having a few dozens servers, just opening remote shell to each servers is becoming tedious. This is a simple shell script I wrote to open multiple session on the running Konsole. Put the sessions you want to open in $SESSION variable, and make sure you have the sessions already created in Konsole:
#!/bin/sh
SESSIONS="root@server1 root@server2 root@server3"
HEIGHT=575
WIDTH=890
KONSOLE=`dcopclient $KONSOLE_DCOP`
CURSESSION=$KONSOLE_DCOP_SESSION
dcop $KONSOLE 'konsole-mainwindow#1' resize $WIDTH $HEIGHT
for A in $SESSIONS ; do
NEWSESSION=`dcop $KONSOLE konsole newSession $A`
SIMPLE=`echo $A | sed 's/..*//g'`
dcop $KONSOLE $NEWSESSION renameSession $SIMPLE
done
dcop $CURSESSION closeSession
Bisa ditunggangi sama virus nggak ? Takutnya nanti senasib dengan Windows Script / VBA / VBS ? :)
hehe, itu kan cuma shell script biasa :)
Sounds interesting. Gua pernah isengin temen gua pake AppleScript, hehe. DCOP mirip kan, bisa diginiin juga?
sudo -u victim osascript -e ‘tell app “iTunes” to stop’ -e ‘say “Please stop playing
your annoying music” using “Zarvox”‘
http://www.macosxhints.com/article.php?story=20030328190234419
dcop juk Player stop
echo "Please stop playing your annoying music" | text2wave | aplay
:)
Tuh kan, mirip, hehe. Kapan nih D-Bus bisa begitu yah? KDE dah ada rencana utk adopsi D-Bus gak?
masih pro dan kontra nih… lihat sini,
sini dan sini.
Well, setelah hampir 2 tahun, akhirnya pindah ke DBUS juga, hehehe…