Sponsored Content
Top Forums Shell Programming and Scripting need suggestion how to use the progress bar while executing shell Post 302668297 by manas_ranjan on Monday 9th of July 2012 05:49:42 AM
Old 07-09-2012
Hi drl,

thank you, I know I sounded like I want to use the bar for wget but actually
I meant wget as an example, but there are loads other option/scripts where I need to use/call/execute simultaneously two shells like copy a heavy one/execute a script and then same time display the bar.......while one thing is in progress ....
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

progress bar

i am trying to write a script where in it will connect to remote servers and execute remote scripts to fetch some data and ftp it back to a main server. i would like to add a script where it will show some sort of status bar until such time that the expected files have been recieved. something... (3 Replies)
Discussion started by: inquirer
3 Replies

2. UNIX for Advanced & Expert Users

progress bar

Hi all, I want to print # like that in a progress bar.. For e.g We can notice that during installation ... but,how to do that? Thnx, sakthi. (4 Replies)
Discussion started by: sakthi.abdullah
4 Replies

3. Shell Programming and Scripting

how can i create a simple progress bar in shell

please help me as i want to create a simple process bar to check the status for any script......... especially in UNIX (5 Replies)
Discussion started by: aditya.ece1985
5 Replies

4. UNIX for Advanced & Expert Users

how to have a cp progress bar?

Hi all, This is a reformed post to my earlier ones!!!!!! I would like to know how to include a progress bar while using the cp... I am copying a few huge files from cdrom but am unable to figure out ,how to give a progress bar!!!!! I checked out other sites as well,but the issue here is... (1 Reply)
Discussion started by: wrapster
1 Replies

5. Shell Programming and Scripting

Progress bar

Hi friends, how can I show a progress bar for any running process in the shell script. For example when I am copying or compressing a file. Thanks. (1 Reply)
Discussion started by: dwiravi
1 Replies

6. Shell Programming and Scripting

progress bar

hi all, in shell script (ksh), how do i write a progress bar ?? i have a script which searches files and while its searching i am currently printing out "." and if it finds what its searching for the script prints out the name of the file e.g .................. firstFile.txt... (2 Replies)
Discussion started by: cesarNZ
2 Replies

7. Programming

A progress bar in C

Hello, it's me again...:eek: I need to create a progress bar in C, but i have no idea on how to do it. i want it to output something like this: Progress: 58% But i can't get it to work. Could you please post an example progress bar written in ANSI C? Thanks (4 Replies)
Discussion started by: Zykl0n-B
4 Replies

8. Shell Programming and Scripting

Progress bar for cp

I'm trying to use this code to get a progress bar for cp: "Can you get cp to give a progress bar like wget?" But I'm getting these errors: stat: illegal option -- c usage: stat awk: division by zero input record number 1, file source line number 4 I'm using Mac OS X 10.6... (1 Reply)
Discussion started by: pcwiz
1 Replies

9. 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
PROGRESS(1)						    BSD General Commands Manual 					       PROGRESS(1)

NAME
progress -- feed input to a command, displaying a progress bar SYNOPSIS
progress [-ez] [-b buffersize] [-f file] [-l length] [-p prefix] cmd [args ...] DESCRIPTION
The progress utility opens a pipe to cmd and feeds an input stream into it, while displaying a progress bar to standard output. If no file- name is specified, progress reads from standard input. Where feasible, progress fstat(2)s the input to determine the length, so a time esti- mate can be calculated. If no length is specified or determined, progress simply displays a count of the data and the data rate. The options are as follows: -b buffersize Read in buffers of the specified size (default 64k). An optional suffix (per strsuftoll(3)) may be given. -e Display progress to standard error instead of standard output. -f file Read from the specified file instead of standard input. -l length Use the specified length for the time estimate, rather than attempting to fstat(2) the input. An optional suffix (per strsuftoll(3)) may be given. -p prefix Print the given ``prefix'' text before (left of) the progress bar. -z Filter the input through gunzip(1). If -f is specified, calculate the length using gzip -l. EXIT STATUS
progress exits 0 on success. EXAMPLES
The command progress -zf file.tar.gz tar xf - will extract the file.tar.gz displaying the progress bar as time passes: 0% | | 0 0.00 KiB/s --:-- ETA 40% |******** | 273 KiB 271.95 KiB/s 00:01 ETA 81% |*********************** | 553 KiB 274.61 KiB/s 00:00 ETA 100% |*******************************| 680 KiB 264.59 KiB/s 00:00 ETA If it is preferred to monitor the progress of the decompression process (unlikely), then progress -f file.tar.gz tar zxf - could be used. The command dd if=/dev/rwd0d ibs=64k | progress -l 120g dd of=/dev/rwd1d obs=64k will copy the 120 GiB disk wd0 (/dev/rwd0d) to wd1 (/dev/rwd1d), displaying a progress bar during the operation. SEE ALSO
ftp(1), strsuftoll(3) HISTORY
progress first appeared in NetBSD 1.6.1. The dynamic progress bar display code is part of ftp(1). AUTHORS
progress was written by John Hawkinson <jhawk@NetBSD.org>. ftp(1)'s dynamic progress bar was written by Luke Mewburn. BUGS
Since the progress bar is displayed asynchronously, it may be difficult to read some error messages, both those produced by the pipeline, as well as those produced by progress itself. BSD
June 6, 2007 BSD
All times are GMT -4. The time now is 10:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy