This is an example (i did intentionally kept as closed to your code as i could)
$REPLY is the build-in variable that works with select case statement (ksh)
Hi,
I have a problem in pasting a url in the thread. I tried many a times and i keep failing.
Can u tell me what's wrong?
I go by the instructions that appear after clicking the http:// but still i fail. The link does not appear properly in the threads that i post.
Thanks,
Nisha (3 Replies)
Hi,
I would be very happy if someone could help me please. I am relatively new to UNIX, and still learning.
My understanding of things are:
Say I have a PC running Windows. This machine has a name. If I have 10 PC's, then I have 10 names, one for each PC. Each PC is independent of the other.... (4 Replies)
Hi
I am trying to set up two hosts in a reverse proxy. The reverse proxy already has 8 servers running perfectly, but they are all simply mapping pure addresses, which I have registered internally and externally.
The latest two I wish to add are a bit different, they are app servers, one... (1 Reply)
Hi,
I am trying to upload a file to a SQL database table. The column type is IMAGE. I am looking for a solution to upload a word doc file. I tried 3 approaches.
1) my $fileToStore = "mytest.doc";
open IPFILE, "<", $name;
binmode IPFILE;
while (<IPFILE>)
{
$fileToStore .= $_;
}
close... (1 Reply)
hello folks,
i am stuck with this awk command. i need to calculate the sum of a column of values on a flatfile and i am using the following command :
awk -F"|" '{x += $10} END {print "Sum: "x}' standard_csv_file1.out
that flatfile contains 180 fields and i am getting the... (5 Replies)
Hi,
I have used the following command to get result using some program and got desired output but I am unable to understand the last part: sort -k5,5 -rn|head -n 10
grep Centre groups.dat |sort -k5,5 -rn|head -n 10
Please guide.
Thanks (2 Replies)
Hi ,
i have a shell script with the first two lines as
#! /bin/ksh
set -x
when i try opening the file from unix using the command 'sh filename.sh' , i am getting the below error :
invalid optionline 2: set: -
Pls help
Use code tags for you code and data... (1 Reply)
I have not been able to append the contents of many files into one file. I have executed the CAT command shown below separately substituting an actual path and file name for the array variable to verify that I have the syntax correct. The bottom line - nothing is happening with CAT. I am running... (16 Replies)
Discussion started by: demmith
16 Replies
LEARN ABOUT DEBIAN
poe::test::loops
POE::Test::Loops(3pm) User Contributed Perl Documentation POE::Test::Loops(3pm)NAME
POE::Test::Loops - Reusable tests for POE::Loop authors
SYNOPSIS
#!/usr/bin/perl -w
use strict;
use Getopt::Long;
use POE::Test::Loops;
my ($dir_base, $flag_help, @loop_modules, $flag_verbose);
my $result = GetOptions(
'dirbase=s' => $dir_base,
'loop=s' => @loop_modules,
'verbose' => $flag_verbose,
'help' => $flag_help,
);
if (
!$result or !$dir_base or $flag_help or !@loop_modules
) {
die(
"$0 usage:
",
" --dirbase DIR (required) base directory for tests
",
" --loop MODULE (required) loop modules to test
",
" --verbose show some extra output
",
" --help you're reading it
",
);
}
POE::Test::Loops::generate($dir_base, @loop_modules, $flag_verbose);
exit 0;
DESCRIPTION
POE::Test::Loops contains one function, generate(), which will generate all the loop tests for one or more POE::Loop subclasses.
The "SYNOPSIS" example is a version of poe-gen-tests, which is a stand-alone utility to generate the actual tests. poe-gen-tests also
documents the POE::Test::Loops system in more detail.
FUNCTIONS
generate( $DIRBASE, @LOOPS, $VERBOSE )
Generates the loop tests. DIRBASE is the (relative) directory in which a subdirectory for each of the LOOPS is created. If VERBOSE is set
to a TRUE value some progress reporting is printed.
POE::Test::Loops::generate(
"./t",
[ "POE::Loop::Yours" ],
1,
);
SEE ALSO
POE::Loop and poe-gen-tests.
AUTHOR & COPYRIGHT
See poe-gen-tests.
perl v5.14.2 2012-03-11 POE::Test::Loops(3pm)