Linux’de mesaj iletmek

Ağustos 25th, 2011 § Yorum yok

1-xterm penceresi içinde top koşmak
ve xterm penceresi içinde echo ile mesaj göndermek

xterm -e "top -c; sleep 10"
xterm -e "watch echo 'Bu bir mesajdır'"

SSH ile birlikte kullanmak için

ssh -Y fatih@localhost  'export DISPLAY=:0 && xterm -e watch echo "Bu bir mesajdır"'

2-notify-send yazılı ile

notify-send "welcome to Linux message box"

SSh ile birlikte kullanımı

ssh -Y fatih@localhost  'export DISPLAY=:0 && notify-send "welcome to Linux message box"'

3-zenity kullanmak

zenity --info --title='Message' --text='Linux redhat '

SSH ile kullanmak

ssh -Y fatih@localhost  'export DISPLAY=:0 && zenity --info --title='Message'  -text='Linux redhat '"

4-kdialog kullanmak

kdialog --title "New Mail Has Arrived" --passivepopup "it will terminate withing 5 minutes" 5

SSH ile kullanmak

ssh -Y fatih@localhost  'export DISPLAY=:0 && kdialog --title "New Mail Has Arrived" --passivepopup "it will terminate withing 5 minutes" 5'

5-En güzel yol:

$ who
jdoe     pts/0        2014-03-09 16:19 (10.3.2.98)
mary     pts/1        2014-03-09 14:10 (10.3.2.123
$ echo "Bu sesaj jdoeya" > /dev/pts/0
$ echo "Bu da sevgili Marrye" > /dev/pts/1

SSh ile yapılması

$ ssh root@hedef 'who'
$ ssh root@hedef 'echo "Bu da sevgili Marrye" > /dev/pts/1'

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

Ne yapıyorum ben!?

Linux’de mesaj iletmek başlıklı yazıyı okuyorsun.

Üst Veri