Sponsored Content
Full Discussion: Need urgent help
Top Forums Shell Programming and Scripting Need urgent help Post 302814717 by PikK45 on Thursday 30th of May 2013 06:05:14 AM
Old 05-30-2013
is there a file called "test.txt"???
 

9 More Discussions You Might Find Interesting

1. Solaris

Need Help Urgent

Hi. My E250 server (Solaris 8) running oracle database gets hangup in between. I checked the logs in /var/adm/messages but could not find anything related to this. can anyone help me out? bala (3 Replies)
Discussion started by: balaji_prk
3 Replies

2. UNIX for Advanced & Expert Users

URGENT,URGENT- Need help tape drive installation

Hi, I am trying to attach tape drive to sun V890 running Solaris 9 on it. I have installed HBA(qlogic) in slot 1 of 0-8 slots and booted the system. I do not see HBAin prtdiag output. The tape drive is not attached to HBA. The tape drive I am going to attach is Sony AIT3. 1.How can I make... (3 Replies)
Discussion started by: sriny
3 Replies

3. Shell Programming and Scripting

Urgent

i have a serious simple problem.please help me out of the situation. i hav a file which contains---- 01473341234, 01473312121, 13131231233, 31233444555, ------------------------ data like that.i want to delete last line comma(,) only.what will be tha command. (4 Replies)
Discussion started by: arghya_owen
4 Replies

4. UNIX for Advanced & Expert Users

need help urgent...........

Hi friends.. I am using the below command to search few files from many folders which is under one folder.. i mean let say the path is A/B/C...and inside C...i have 1-10 folder... the below command is working fine.... for i in 1 3 5 7; do find /A/B/C/${i} -name "*.txt" -o -name "*.csv"... (3 Replies)
Discussion started by: sapan123
3 Replies

5. Red Hat

urgent

abb 117.96.113.21 cgg 101.2.104.42 cgg 110.227.247.236 desk 203.20.35.28 png 1.39.242.241 png 1.39.242.241 rzx 101.2.104.42 rzx 115.246.160.36 abb 49.138.242.187 how to find the count of this file wtrto ip thnx in advance (4 Replies)
Discussion started by: himanshu1.singh
4 Replies

6. Shell Programming and Scripting

Urgent!!

Hi I have a file containing DE 3'UTR in Homo sapiens alpha-1-B glycoprotein (A1BG), mRNA. SQ Sequence 216 BP; 37 A; 58 C; 69 G; 52 T; 0 other; DE 3'UTR in Homo sapiens alpha-1-B glycoprotein (A1BG), mRNA. SQ Sequence 1844 BP; 358 A; 483 C; 434 G; 569 T; 0 other; DE 3'UTR in Homo... (1 Reply)
Discussion started by: jyotirmoy21
1 Replies

7. Shell Programming and Scripting

Need Urgent help

Hi friends, I need urgent help here: Issue: I need to create shell script that will find the files & throw an error through job (autosys) when file not found. Daily we use to receive 3 files from a system. Obstacles: 1) All 3 files names are same. 2) Timestamp is same. 3)... (1 Reply)
Discussion started by: tush
1 Replies

8. Shell Programming and Scripting

Urgent !!

Hello All, I want to use scp for copying multiple files ( files locations are stored in an array ) from remote server from different locations without prompting password every time . I will supply password once and it should be able to copy every file mentioned in an array. eg :- array have ... (1 Reply)
Discussion started by: manpav
1 Replies

9. Shell Programming and Scripting

URGENT Reading a file and assessing the syntax shell script URGENT

I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)
Discussion started by: Gurdza32
1 Replies
Test::LectroTest::Compat(3pm)				User Contributed Perl Documentation			     Test::LectroTest::Compat(3pm)

NAME
Test::LectroTest::Compat - Use LectroTest property checks in a Test::Simple world SYNOPSIS
#!/usr/bin/perl -w use MyModule; # contains code we want to test use Test::More tests => 2; use Test::LectroTest::Compat; # property specs can now use Test::Builder-based # tests such as Test::More's cmp_ok() my $prop_nonnegative = Property { ##[ x <- Int, y <- Int ]## cmp_ok(MyModule::my_function( $x, $y ), '>=', 0); }, name => "my_function output is non-negative" ; # and we can now check whether properties hold # as a Test::Builder-style test that integrates # with other T::B tests holds( $prop_nonnegative ); # test whether prop holds cmp_ok( 0, '<', 1, "trivial 0<1 test" ); # a "normal" test DESCRIPTION
This module lets you use mix LectroTest property checking with other popular Test::* modules. With it, you can use "is()"- and "ok()"-style assertions from Test::* modules within your LectroTest property specifications and you can check LectroTest properties as part of a Test::Simple or Test::More test plan. (You can actually take advantage of any module based on Test::Builder, not just Test::Simple and Test::More.) The module exports a single function "holds" which is described below. holds(property, opts...) holds( $prop_nonnegative ); # check prop_nonnegative holds( $prop_nonnegative, trials => 100 ); holds( Property { ##[ x <- Int ]## my_function2($x) < 0; }, name => "my_function2 is non-positive" ); Checks whether the given property holds. When called, this method creates a new Test::LectroTest::TestRunner, asks the TestRunner to check the property, and then reports the result to Test::Builder, which in turn reports to you as part of a typical Test::Simple- or Test::More-style test plan. Any options you provide to "holds" after the property will be passed to the "TestRunner" so you can change the number of trials to run and so on. (See the docs for "new" in Test::LectroTest::TestRunner for the complete list of options.) TESTING FOR REGRESSIONS AND CORNER CASES
LectroTest can record failure-causing test cases to a file, and it can play those test cases back as part of its normal testing strategy. The easiest way to take advantage of this feature is to set the regressions parameter when you "use" this module: use Test::LectroTest::Compat regressions => "regressions.txt"; This tells LectroTest to use the file "regressions.txt" for both recording and playing back failures. If you want to record and play back from separate files, or want only to record or play back, use the record_failures and/or playback_failures options: use Test::LectroTest::Compat playback_failures => "regression_suite_for_my_module.txt", record_failures => "failures_in_the_field.txt"; See Test::LectroTest::RegressionTesting for more. NOTE: If you pass any of the recording or playback parameters to Test::LectroTest::Compat, you must have version 0.3500 or greater of LectroTest installed. Module authors, update your modules' build dependencies accordingly. BUGS
In order to integrate with the Test::Builder testing harness (whose underlying testing model is somewhat incompatible with the needs of random trial-based testing) this module redefines two Test::Builder functions ("ok()" and "diag()") for the duration of each property check. SEE ALSO
For a gentle introduction to LectroTest, see Test::LectroTest::Tutorial. Also, the slides from my LectroTest talk for the Pittsburgh Perl Mongers make for a great introduction. Download a copy from the LectroTest home (see below). Test::LectroTest::RegressionTesting explains how to test for regressions and corner cases using LectroTest. Test::LectroTest::Property explains in detail what you can put inside of your property specifications. Test::LectroTest::Generator describes the many generators and generator combinators that you can use to define the test or condition space that you want LectroTest to search for bugs. Test::LectroTest::TestRunner describes the objects that check your properties and tells you how to turn their control knobs. You'll want to look here if you're interested in customizing the testing procedure. Test::Simple and Test::More explain how to do simple case-based testing in Perl. Test::Builder is the test harness upon which this module is built. LECTROTEST HOME
The LectroTest home is http://community.moertel.com/LectroTest. There you will find more documentation, presentations, mailing-list archives, a wiki, and other helpful LectroTest-related resources. It's also the best place to ask questions. AUTHOR
Tom Moertel (tom@moertel.com) INSPIRATION
The LectroTest project was inspired by Haskell's QuickCheck module by Koen Claessen and John Hughes: http://www.cs.chalmers.se/~rjmh/QuickCheck/. COPYRIGHT and LICENSE Copyright (c) 2004-05 by Thomas G Moertel. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.3 2007-08-30 Test::LectroTest::Compat(3pm)
All times are GMT -4. The time now is 10:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy