Hi All,
I am a newbie,
I am looking for a script that can capture logs based on a request id and store it in tmp folder
Log files looks like this"
Trying to capture using Request id and request changes randomly, so it has to be a variable where i can set the value of the id and capture the logs in particular location.
Would really appreciate your help
Last edited by Corona688; 07-08-2015 at 12:13 PM..
Hello everyone,
I am trying to write a script that will capture few lines from a text file based on 2 keywords in the first line and 1 keyword in the last one. It could also be based on the first line only + the folllowing 3 lines.
Could some one help or give directions. Thanks. (4 Replies)
I have one request, First it has to create one file and in that file
it has to include some lines based on user request.
Suppose user requested 10, then script needs to add 10 lines like below
QAEVO_A1|A1
QAEVO_A2|A2
QAEVO_A3|A3
QAEVO_A4|A4
QAEVO_A5|A5
QAEVO_A6|A6
QAEVO_A7|A7... (8 Replies)
Please pardon my ignorance, but I need to create a web-based form which can be used to request access to the unix servers in our environment. It just needs to have input fields for basic info (name, dept., etc.), and perhaps a drop-down box with the names of the servers. The form will be submitted... (2 Replies)
hi,
i want to pop up an alert box using perl script. my requirement is.
i am using a html page which calls a perl script. this perl script calls a shell script.. after the shell script ends its execution, i am using exit 0 to terminate the shell script successfully and exit 1 to terminate the... (3 Replies)
HI Team ,
Is there a way to capture information logs ( session or workflow ) and grep only ERROR or FAIL messages and send to email distro
using mailx or sendmail option.
I have around 200 sessions running on daily basis and this script has to run every day , and capture only error... (0 Replies)
Hi,
Recently i have write a simple script to capture CPU high usage based on prstat but i found out that it did capture correctly. I need to capture the rows that contains CPU usage more than 3%. Below line which i thought will capture CPU usage based CPU column in prstat(9th parameter) which is... (3 Replies)
I have bash shell script which is internally calling python script.I would like to know how long python is taking to execute.I am not allowed to do changes in python script.Please note i need to know execution time of python script which is getting executed inside shell .I need to store execution... (2 Replies)
Appreciate help for the below issue.
Im using below code.....I dont want to attach the logs when I ran the perl twice...I just want to take backup with today date and generate new logs...What I need to do for the below scirpt..............
1)if logs exist it should move the logs with extention... (1 Reply)
Discussion started by: Sanjeev G
1 Replies
LEARN ABOUT DEBIAN
test::image::gd
Test::Image::GD(3pm) User Contributed Perl Documentation Test::Image::GD(3pm)NAME
Test::Image::GD - A module for testing images using GD
SYNOPSIS
use Test::More plan => 1;
use Test::Image::GD;
cmp_image('test.gif', 'control.gif', '... these images should match');
# or
my $test = GD::Image->new('test.gif');
my $control = GD::Image->new('control.gif');
cmp_image($test, $control, '... these images should match');
# some other test functions ...
size_ok('camel.gif', [ 100, 350 ], '... the image is 100 x 350");
height_ok('test.gif', 200, '... the image has a height of 200');
width_ok('test.gif', 200, '... the image has a width of 200');
DESCRIPTION
This module is meant to be used for testing custom graphics, it attempts to "visually" compare the images, this means it ignores invisible
differences like color palettes and metadata. It also provides some extra functions to check the size of the image.
FUNCTIONS
cmp_image ($got, $expected, $message)
This function will tell you whether the two images will look different, ignoring differences in the order of colors in the color
palette and other invisible changes.
Both $got and $expected can be either instances of "GD::Image" or either a file handle or a file path (both are valid parameters to the
"GD::Image" constructor).
size_ok ($got, [ $width, $height ], ?$message)
This function will check if an image is a certain size.
As with the "cmp_image" function, the $got parameter can be either an instance of "GD::Image" or a file handle or a file path (all are
valid parameters to the "GD::Image" constructor).
height_ok ($got, $height, ?$message)
This function will check if an image is a certain height.
As with the "cmp_image" function, the $got parameter can be either an instance of "GD::Image" or a file handle or a file path (all are
valid parameters to the "GD::Image" constructor).
width_ok ($got, $width, ?$message)
This function will check if an image is a certain width.
As with the "cmp_image" function, the $got parameter can be either an instance of "GD::Image" or a file handle or a file path (all are
valid parameters to the "GD::Image" constructor).
TO DO
Add more functions
This module currently serves a very basic need of mine, however, I am sure as I start writing more tests against images I will find a
need for other testing functions. Any suggestions are welcome.
BUGS
None that I am aware of. Of course, if you find a bug, let me know, and I will be sure to fix it.
CODE COVERAGE
I use Devel::Cover to test the code coverage of my tests, below is the Devel::Cover report on this module test suite.
---------------------------- ------ ------ ------ ------ ------ ------ ------
File stmt bran cond sub pod time total
---------------------------- ------ ------ ------ ------ ------ ------ ------
Test/Image/GD.pm 100.0 91.7 63.6 100.0 100.0 100.0 93.7
---------------------------- ------ ------ ------ ------ ------ ------ ------
Total 100.0 91.7 63.6 100.0 100.0 100.0 93.7
---------------------------- ------ ------ ------ ------ ------ ------ ------
SEE ALSO
The "compare" function of "GD::Image" class, that is how this "cmp_image" is implemented.
AUTHOR
Stevan Little, <stevan@iinteractive.com>
COPYRIGHT AND LICENSE
Copyright 2005 by Infinity Interactive, Inc.
<http://www.iinteractive.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2005-12-09 Test::Image::GD(3pm)