Beranda » Pemrograman » Create Progress bar in Bash Bourne

Create Progress bar in Bash Bourne

Start here

to the point ya mr.
dalam OSku yaitu slackware ada tmn saya yg sering di pakai untuk memperindah tampila script bash yang kita buat yaitu program dialog
man dialog
or
dialog –help

langsung liat script nya aja untuk membuat suatu tampilan progress-bar di bashku😀
code

#!/bin/bash
# d4dy slackers
interface=wlan0
counter=0
(

while :
do
cat <<EOF
XXX
$counter
wlan0 down ( $counter%):
XXX
EOF
ifconfig $interface down

(( counter+=5 ))
[ $counter -eq 100 ] && break

sleep 1
done
) |
dialog --title "how to" --gauge "Please wait" 7 70 0

hasilnya
pro


Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s