12-20-2012
I appreciate it. Makes sense to me
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
while
do
print What is the next device number to be added to $dgroup?
print Press \<Enter\> if there are no more devices to be added.
read dev_num
export dev_num
symld -g $dgroup -sid $sname add dev $dev_num
done
In this while... (2 Replies)
Discussion started by: stepnkev
2 Replies
2. Shell Programming and Scripting
i have two file.
i want to count the lines of each file one by one in loop and compare it.
can any one pls help me on this? (1 Reply)
Discussion started by: Aditya.Gurgaon
1 Replies
3. Shell Programming and Scripting
Hi all
Sorry for the basic question, but i am writing a shell script to get around a slightly flaky binary that ships with one of our servers. This particular utility randomly generates the correct information and could work first time or may work on the 12th or 100th attempt etc !.... (4 Replies)
Discussion started by: rethink
4 Replies
4. Shell Programming and Scripting
I'm improving the way an existing script handles arrays, but the results aren't what I had in mind:
e="Too many consecutive errors... System is probably unstable!"
e="Cancelable Timer Wait Failed!"
for errcd in ${e}
do
echo ${errcd}
done
The for loop interprets the spaces... (2 Replies)
Discussion started by: ironhalo
2 Replies
5. Programming
HI there,
I am trying to count manually what this code does but I am stuck and I don't learly see the result. The code works and it compiles and runs but I just don't follow the value of var.
#include<stdio.h>
#include<stdlib.h>
#include<sys/types.h>
#include<unistd.h>
#include<wait.h>... (2 Replies)
Discussion started by: bluetxxth
2 Replies
6. Shell Programming and Scripting
I am struggling with the for loop. I have a file name heros.txt and I would like to go through a list in file where.txt and see if I can find the name from where inside heros.
One of the problems that I am having is I dont understand how to setup the for loop to find the list to search.:wall:
... (6 Replies)
Discussion started by: captaindoogles
6 Replies
7. Shell Programming and Scripting
Hi,
I'm trying to put together a small script that will read a txt file that contains a list of two columns. Each column is the name of a folder..
e.g.
AIX Server1
AIX Server2
AIX Server3
$ for i in `cat /opt/apacheprod/scripts/input/copy_list.txt`
do
PLATFORMVAR=`awk ' { print $1 } '... (7 Replies)
Discussion started by: Jazmania
7 Replies
8. Shell Programming and Scripting
I have two files. In file one, there are many columns, but only two of interest to me. Column 1 contains a list of individuals, defined by an ID number. Column 10 contains the diagnosis that each individual has (I am a physician). All together, there are 3000 lines in this file, one line per... (2 Replies)
Discussion started by: awc228
2 Replies
9. Shell Programming and Scripting
Hi everyone
I have a quick question... I have an ascii file that looks like the one below, and I wanted to find a way to make a listing of how many columns there is in each row, similar to the example below.
Anyone has any ideas of how I can do this?
Thanks!!
6 Sep 2008 -158.535 33.6617... (2 Replies)
Discussion started by: lucshi09
2 Replies
10. Shell Programming and Scripting
Probably a simple to this, but unsure how to do it. I would prefer an AWK solution. Below is the data set.
1 2 3
2 5 7
4 6 9
1 5 4
8 5 7
1 1 10
15 3 12
3 7 9
9 8 10
4 5 2
9 1 10
4 7 9
7 12 6
9 13 8
For the second... (11 Replies)
Discussion started by: mollydog11
11 Replies
LEARN ABOUT DEBIAN
io::async::looptests
IO::Async::LoopTests(3pm) User Contributed Perl Documentation IO::Async::LoopTests(3pm)
NAME
"IO::Async::LoopTests" - acceptance testing for "IO::Async::Loop" subclasses
SYNOPSIS
use IO::Async::LoopTests;
run_tests( 'IO::Async::Loop::Shiney', 'io' );
DESCRIPTION
This module contains a collection of test functions for running acceptance tests on IO::Async::Loop subclasses. It is provided as a
facility for authors of such subclasses to ensure that the code conforms to the Loop API required by "IO::Async".
TIMING
Certain tests require the use of timers or timed delays. Normally these are counted in units of seconds. By setting the environment
variable "TEST_QUICK_TIMERS" to some true value, these timers run 10 times quicker, being measured in units of 0.1 seconds instead. This
value may be useful when running the tests interactively, to avoid them taking too long. The slower timers are preferred on automated
smoke-testing machines, to help guard against false negatives reported simply because of scheduling delays or high system load while
testing.
TEST_QUICK_TIMERS=1 ./Build test
FUNCTIONS
run_tests( $class, @tests )
Runs a test or collection of tests against the loop subclass given. The class being tested is loaded by this function; the containing
script does not need to "require" or "use" it first.
This function runs "Test::More::plan" to output its expected test count; the containing script should not do this.
TEST SUITES
The following test suite names exist, to be passed as a name in the @tests argument to "run_tests":
io
Tests the Loop's ability to watch filehandles for IO readiness
timer
Tests the Loop's ability to handle timer events
signal
Tests the Loop's ability to watch POSIX signals
idle
Tests the Loop's support for idle handlers
child
Tests the Loop's support for watching child processes by PID
control
Tests that the "run", "stop", "loop_once" and "loop_forever" methods behave correctly
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
perl v5.14.2 2012-10-24 IO::Async::LoopTests(3pm)