Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- commandfile="/opt/certix/scripts/aktive-komp/befehlslisten/befehle_cisco.txt"
- max=$(cat $commandfile | wc -l)
- current=0
- pro=0
- cat $commandfile | while read command
- do
- current=$(( $current + 1 ))
- pro=$(( ($current*100) / $max ))
- echo $pro | dialog --gauge "$1 : $command" 5 300 0
- cisco_web $1 $2 $3 $command 2>/dev/null 1>> ${1}.txt
- done
- sed 's|</DL><HR><PRE>command completed.||g' -i ${1}.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement