status bar in shell script or perl


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting status bar in shell script or perl
# 1  
Old 11-15-2008
status bar in shell script or perl

How To Generate different different progress bar in shell script?

like we install some software it show us progress, like we install RPM that also show us progress.

Thanks,
Bash
# 2  
Old 11-16-2008
Hi,

something like this?

[code]
for i in {1..100}; do echo $i;sleep 1; done | dialog --guage "A guage demo" 6 70 0
[code]

Kind regards

Chris
# 3  
Old 11-16-2008
status bar in shell script or perl

...or by foot...

echo "" | awk '{printf("%22s\r[", "]")}' ; for i in {1..20} ; do echo -n '*' ; sleep 1; done ; echo ""
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Ncurses status bar

Hi, all, I'm writing a BBS telnet client, and am trying to implement a status bar into it, at the bottom of the screen. I am using NCurses to accomplish this. So far, it appears to be working, that is, upon connecting to BBS, it will display the status bar, and then quickly disappear. ... (5 Replies)
Discussion started by: ignatius
5 Replies

2. Shell Programming and Scripting

Shell Script and Progress Bar or GUI Wrapper

Hi, I have shell script that I am running under Ubuntu as root. Is it possible to hide the command window and show the user some sort of progress /random progress bar / or other form of GUI interaction? On MAC, I have been using Platypus but on Ubuntu I am not sure what to do. (4 Replies)
Discussion started by: naveedanwar4u
4 Replies

3. Ubuntu

Why icon in status bar is disabled?

Below the list of command to explain the status michelangeli@hp:~$ lspci -nn | grep -i net 02:00.0 Ethernet controller : Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03) 04:00.0 Network controller : Ralink corp. RT2790 Wireless 802.11n 1T/2R... (6 Replies)
Discussion started by: michelangeli
6 Replies

4. Shell Programming and Scripting

Shell Script for continuously checking status of a another script running in background, and immedia

Hi, I want to write a script which continuously checking status of a script running in background by nohup command. And if same script is not running then immediately start the script...please help.. i am using below command to run script nohup system_traps.sh & but in some... (9 Replies)
Discussion started by: ketanraut
9 Replies

5. Shell Programming and Scripting

Help with Email Status shell script

I have written a bash script to to sort the data from logs i need some help in printing the outputs , i dont have much ideas in bah scripting. Sample script ----------------------- #!/bin/bash a=`date | cut -d " " -f2,2,3` cat /var/log/maillog |grep "$a" |grep -E -e 'deferred|bounced'... (9 Replies)
Discussion started by: unimaxlin
9 Replies

6. Shell Programming and Scripting

Perl Progress BAR

Looking for a solution to why my progress bar not working My code print "STARTED:\n "; my $pdf = CAM::PDF->new('XYZ.pdf') or die $CAM::PDF::errstr; print STDOUT "Processing File: "; open (FILE, ">bill_data.txt") || die "Unable to save Bill_data.txt file"; for my $pagenum (1 ..... (4 Replies)
Discussion started by: chakrapani
4 Replies

7. Shell Programming and Scripting

Spinning bar status while doing something.

After some googling, I came across this script to create a spinning cursor: #!/bin/bash # paste following in your script declare -a Spinner Spinner=(/ - \\ \| / - \\ \| ) Spinnerpos=0 update_spinner() { printf "\b"${Spinner} (( Spinnerpos=(Spinnerpos +1)%8 )) } # testing... (2 Replies)
Discussion started by: mrwatkin
2 Replies

8. Shell Programming and Scripting

Progress Bar in Perl for UNIX

Hi Programmers, I just wrote a small script to print the percent complete. This maybe useful for someone! #!/usr/local/bin/perl # Total from which percentage will be calculated $cnt = 16; $|=1; for($i=0;$i<$cnt;$i++) { # Calculate Percentage $percent = ($i/$cnt)*100; (13 Replies)
Discussion started by: hifake
13 Replies

9. Shell Programming and Scripting

perl progress bar dialog

Hello, In perl how to show the percentage download when we download something wget ... For example when we wget some software instead of showing the following ...... ============================================ # wget... (4 Replies)
Discussion started by: fed.linuxgossip
4 Replies

10. Shell Programming and Scripting

status of perl script in another ...

Hi, Is there a way to get the status of a perl program in another perl script ? Ex.: 1/ proc_sub.pl: print "test programme perl\n" and exit 1; 2/ proc_main.pl: print "status of proc_sub.pl : "; proc_sub.pl # possibility to get the status=1 ??? Thanks a lot. (4 Replies)
Discussion started by: jo_aze
4 Replies
Login or Register to Ask a Question