From: Umut Gökbayrak (umutgokbayrak@operamail.com)
Date: Tue 08 Aug 2000 - 02:00:38 EEST
Merhaba,
shell' de bir komutu calistirmak icin TCL' de exec komutu kullaniliyor. exec
reboot komutunu iceren bir fonksiyon tanimlayiniz. Ardindan da bu fonksiyonu
butonun -command ozelligi ile cagiriniz. Yani sonuc suna benzer bir sekilde
olacak.
proc yeniden_baslat { args } {
exec reboot
}
button .lbuton.reboot -text "Yeniden Baslat" -command "yeniden_baslat"
Iyi Calismalar
Umut Gokbayrak
>===== Original Message From "Serdar Cevher" <scevher@hotmail.com> =====
>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.
>
>
>>From: Erol Ozcan <eozcan@superonline.com>
>>Reply-To: linux@listweb.bilkent.edu.tr
>>To: Multiple recipients of list LINUX <linux@listweb.bilkent.edu.tr>
>>Subject: [LINUX:18518] Re: Tcl/Tk
>>Date: Mon, 7 Aug 2000 00:46:54 +0300 (EEST)
>>
>>problem nedir?
>>
>>Serdar Cevher wrote:
>>
>> > Listede hiç Tcl/Tk dilinden anlayan yok mu?
>>
>>
>>
>> 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/
>>
>
>________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
>
> 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/
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/