It's simpler than whatever you're thinking. I only mean exactly what I'm saying:
You'll need to organize the text somehow before sending it into bc, but not knowing what your 'time' program prints, I can't say how.
awk would probably be better than bc, but if they insist on you using the worst program for the job...
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
imager::color::float
Imager::Color::Float(3pm) User Contributed Perl Documentation Imager::Color::Float(3pm)NAME
Imager::Color::Float - Rough floating point sample color handling
SYNOPSIS
$color = Imager::Color->new($red, $green, $blue);
$color = Imager::Color->new($red, $green, $blue, $alpha);
$color = Imager::Color->new("#C0C0FF"); # html color specification
$color->set($red, $green, $blue);
$color->set($red, $green, $blue, $alpha);
$color->set("#C0C0FF"); # html color specification
($red, $green, $blue, $alpha) = $color->rgba();
@hsv = $color->hsv(); # not implemented but proposed
$color->info();
DESCRIPTION
This module handles creating color objects used by Imager. The idea is that in the future this module will be able to handle color space
calculations as well.
A floating point Imager color consists of up to four components, each in the range 0.0 to 1.0. Unfortunately the meaning of the components
can change depending on the type of image you're dealing with:
o for 3 or 4 channel images the color components are red, green, blue, alpha.
o for 1 or 2 channel images the color components are gray, alpha, with the other two components ignored.
An alpha value of zero is fully transparent, an alpha value of 1.0 is fully opaque.
METHODS
new This creates a color object to pass to functions that need a color argument.
set This changes an already defined color. Note that this does not affect any places where the color has been used previously.
rgba()
This returns the red, green, blue and alpha channels of the color the object contains.
info
Calling info merely dumps the relevant color to the log.
AUTHOR
Arnar M. Hrafnkelsson, addi@umich.edu And a great deal of help from others - see the "README" for a complete list.
SEE ALSO Imager(3), Imager::Color.
http://imager.perl.org/
perl v5.14.2 2011-06-06 Imager::Color::Float(3pm)