Does it really print that? Or does it actually print "0:00.00 (Elapsed)"? Be specific, if we make a program for the wrong input it won't give the right output.
You can probably make that simpler, by just feeding it "%F" instead of "%F (elapsed)", so it prints 0:00.00 per loop.
Then feed it through another loop so you can transform it into an expression to feed into bc.
Here's an incomplete example:
Last edited by Corona688; 10-12-2011 at 01:31 PM..
Reason: missing (. whoops!
Hi Folks...
I am using a ksh script to submit the at command to run a shell script for immediate execution. The shell script requries 1 parameter.
Command in the script is
at -m -f $EXE_DIR/process_server.sh $START_TIME $DB_NAME
where START_TIME=now and DB_NAME= tnsname of Oracle... (1 Reply)
How to allocate memory for a shell script on aix box at the time of execution i.e at runtime
Are there any commands for AIX in specific
Thanks in Advance (1 Reply)
How to allocate memory for a shell script on aix box at the time of execution i.e at runtime
Are there any commands for AIX in specific
Thanks in Advance (3 Replies)
How to allocate memory for a shell script on aix box at the time of execution i.e at runtime
Are there any commands for AIX in specific
Thanks in Advance (1 Reply)
hi I am new to shell programming.....my question is while running one of my shell program it stops in between to accept input from the user and proceeds furthur after giving input....I want to know whether I can set this input through some files so that the shell acript reads the input from the... (10 Replies)
Hi,
I am trying to capture runtime stats of a shell script (c shell). Are there system variables to call? Or should I create a date variable at the start of the script and at the end of the script? I am trying to capture the time if the script stops or ends with error.
Please help.
... (4 Replies)
so I've made a shell script that downloads 6 files in succession from a given url, then deletes them. Now I want to time the script, and the average time it uses by running it ~100 times. My problem is tho, how do I store the time it takes for each run through of the script? I know time writes to... (3 Replies)
Hi All,
I have a script which intends to create as many variables at runtime, as the number of parameters passed to it. The script needs to save these parameter values in the variables created and print them
abc.sh
----------
export Numbr_Parms=$#
export a=1
while
do
export... (3 Replies)
Discussion started by: dev.devil.1983
3 Replies
LEARN ABOUT DEBIAN
dzen2-dbar
DBAR(1) General Commands Manual DBAR(1)NAME
dzen2-dbar - simple gadget that you can use in combination with dzen to display a progressbar.
SYNOPSIS
dzen2-dbar [-w characters] [-s symbol] [-min minvalue] [-max maxvalue] [-l string] [-nonl]
DESCRIPTION
dbar is an application that generates semi graphical progress meters, from some values you supply to it.
See the usage examples for a description of the expected input format.
OPTIONS
A summary of options is included below.
-max Value to be considered 100% (default: 100)
-min Value to be considered 0% (default: 0)
-w Number of charcaters to be considered 100% in the bar (default: 25 )
-s Symbol represeting the percentage value in the bar (default: = )
-l label to be prepended to the bar (default: '' )
-nonl no new line, don't put '0 at the end of the bar (default: do print '0)
USAGE EXAMPLES
Static 0% and 100% mark or single value input:
Command: echo 25 | dbar -m 100 -l Sometext
Output: Sometext 25% [====== ]
If your 100% mark changes dynamically or 2-values input:
Command: echo "50 150" | dbar
Output: 33% [======== ]
If your value range is not between [0, maxval] or 3-values input:
Command: echo "50 -25 150" | dbar
Output: 43% [=========== ]
Dbar was written by Robert Manea.
This manual page was written by bertagaz <bertagaz@ptitcanardnoir.org>, for the Debian project (but may be used by others).
Jan 01 2008 DBAR(1)