Sponsored Content
Top Forums Shell Programming and Scripting "Need progress mechanism for copy process" Post 302374578 by Scrutinizer on Wednesday 25th of November 2009 02:40:44 AM
Old 11-25-2009
So you found other threads explaining how to make a progress bar. During the process you need to know how to measure progress in relation to the finished state. The criterion you mention is time, so at any point in time you can define progress as elapsed time divided by 2 minutes.

Last edited by Scrutinizer; 11-25-2009 at 05:12 AM..
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Process seen in "ps aux" but not "top"

Hi, I have a process that can be seen after "ps aux" command. However when I do "top" command. This process cannot be seen. How can this happen? Is there anything wrong with my code? (3 Replies)
Discussion started by: monkfan
3 Replies

2. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

3. UNIX for Dummies Questions & Answers

A mechanism like "batch file of windows" in Unix

Hi all, Like in windows OS we have in unix something called "jobs"-term me if i am wrong- to run a sequence of steps which we can exceute at our own will without scheduling like corntab scheduling. can any one tell me what is the structure of this file and provide me with some info with this... (5 Replies)
Discussion started by: aixjadoo
5 Replies

4. Red Hat

"service" , "process" and " daemon" ?

Friends , Anybody plz tell me what is the basic difference between "service" , "process" and " daemon" ? Waiting for kind reply .. .. (1 Reply)
Discussion started by: shipon_97
1 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

7. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

8. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
PIPEMETER(1)						      General Commands Manual						      PIPEMETER(1)

NAME
pipemeter - measure speed of data going through a pipe/redirection SYNOPSIS
pipemeter [ -alV ] [ -s size ] [ -b block_size ] [ -m max_block_size ] [ -i interval ] [ -f infile -f infile2 ] infile infile2 ... DESCRIPTION
pipemeter simply takes input on stdin, and redirects it to its stdout. While doing this, it measures how fast the data is moving through it. Alternatively, with the -s parameter, shows a progress bar as data is piped through it. All output generated by pipemeter is written to stderr. While running in progress mode, pipemeter will display the ETA (Estimated Time of Arrival). When exiting, it will change this field to show the elapsed time for the program. In rate-only mode, it will just show elapsed time. Note that as of pipemeter 0.8, Adaptive Block Sizing is used to speed up the movement of data through it. It will increase, or sometimes decrease, the block size in an attempt to find the one that works best for the combination of input and output. This also helps it deal better with, for instance, a temporarily busy disk. You can use -a to turn it off. -s, --size size Sets the size of the input, and turns on the progress bar. -b, --blocksize block_size Sets the size of blocks, in bytes, to move through the program at once. Default is 8192. A suffix of K means Kilobytes(x*1024) means Megabytes(x*1024*1024), and G means Gigabytes(x*1024*1024*1024). -m, --maxblock max_block_size Sets the maxium block size for adaptive block sizing. Default is 8M. -i, --interval interval Specify the number of seconds between updates on the speed and/or progress bar. -f, --file infile infile specifies a file to be read instead of stdin. It will also automatically turn on the progress bar if a size can be deter- mined. Multiple occurances of -f will read the files in the order they are specified on the cmdline, and sizes will be added to eachother. Note that this option remains for backward compatibility, it is far simpler to just specify the input files without options. -F, --list listfile specifies a file to read in the list of input files from. Each line is a path to a file, terminated by a newline. -r, --report report only mode. This causes the program to suppress outputting/calculating while running. It will print out only one line. -a, --autooff turn off adaptive block sizing. Sometimes ABS can use insane amounts of RAM, such as when reading and writing to RAM disks. -V, --version Prints a version number and exits. -l, --log Turns on logging mode. Uses only newlines, no returns. AUTHOR
Written by Clint Byrum <cbyrum@spamaps.org> COPYRIGHT
Copyright (C) 2006 Clint Byrum This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PAR- TICULAR PURPOSE. PIPEMETER(1)
All times are GMT -4. The time now is 10:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy