Wadah Belajar Linux, Debian, Mikrotik, Networking, Routing, dan Ilmu Pendukungnya

< Browse > Home / Linux, Uncategorized, script / Blog article: Script Auto Shutdown Debian

| Mobile | RSS

Script Auto Shutdown Debian

December 24th, 2008 | No Comments | Posted in Linux, Uncategorized, script

Bikin sebuah file, misal tewas.sh.

# vim tewas.sh

Kopi paste script berikut :

#!/bin/bash

echo -n “Masukkan Waktu Shutdown Komputer (hh:mm)= ”
read WAKTU

shutdown -h $WAKTU

Simpan (:wq), lalu set permisi menjadi execute

# chmod +x tewas.sh

Untuk jalankan script

# ./tewas.sh
Masukkan Waktu Shutdown Komputer (hh:mm)=

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Blogosphere News
  • Live
  • MisterWong
  • MySpace
  • Ping.fm
  • Slashdot
  • StumbleUpon
  • Technorati
  • Print
  • email
Leave a Reply 4940 views, 1 so far today |

Related Posts

Leave a Reply



View My Stats