From: Erol Ozcan (eozcan@superonline.com)
Date: Mon 07 Aug 2000 - 23:50:11 EEST
Serdar Cevher wrote:
> Bir tuşa basıldığında herhangi bir komutun çalışmasını nasıl sağlayabilirim?
> Mesela .lbuton tuşuna basıldığında reboot komutunu nasıl çalıştırabilirim?
> Teşekkürler.
reboot.tk dosyasina asagidakileri yazin.
#!/usr/bin/wish -f
button .lbutton -text "Reboot" -command { exec "/sbin/reboot" }
pack .lbutton
% chmod a+x reboot.tk
# chown root.root reboot.tk
# chmod ug+s reboot.tk
% ./reboot.tk
seklinde deneyin.
Listeden cikmak icin:
unsub linux
mesajini listeci@bilkent.edu.tr adresine gonderiniz.
Lutfen Listeci icin MIME / HTML / Turkce Aksan kullanmayin.
Listeci arayuzu: http://listweb.bilkent.edu.tr/yardim/bilkent/linux.html
Liste arsivinin adresi: http://listweb.bilkent.edu.tr/