12-01-2008
Since the shell is your problem, switch to a better shell linke bash or ksh. Mark my words, if you stay with tcsh/csh you will be fighting problem after problem. Maybe:
ls /TEST/bin | xargs grep -l "test"
or
find /TEST/bin ! -name bin -type d -prune -o -type f -print | xargs grep -l "test"
will work with your shell. It's hard to tell you what commands to use when your shell is known to be broken.
10 More Discussions You Might Find Interesting
1. IP Networking
What do you think of the netstat msg about :
udp 2320 0 *:xdmcp *:* The 2320? Does that mean an error?
I used netstat -l | grep 'xdmcp' to get that, but does the 2320 indicate an error? I'm trying to figure out why, after i've enabled xdmcp to true, it is still not showing up... (2 Replies)
Discussion started by: kymberm
2 Replies
2. Linux
mit@mydomain.com
here is the latest error message:
There was a problem logging onto your mail server. Your Password was rejected. Account: 'mit@mydomain.com', Server: 'mail.mit.com', Protocol: POP3, Server Response: '-ERR Logon failure: unknown user name or bad password.', Port: 110,... (2 Replies)
Discussion started by: naik_mit
2 Replies
3. UNIX for Dummies Questions & Answers
Sorry for such a simple question, but being new cannot find any info..
I am trying to ftp a file and checking if the ftp was successful or not. Either way I want to send an e-mail to myself to left me know if good ftp or ftp was not sent. I have the code in the program to do this and am going... (1 Reply)
Discussion started by: roncayenne
1 Replies
4. Programming
is it possible to use a msg queue with multiple threads spawned from the same app? (1 Reply)
Discussion started by: strider
1 Replies
5. Programming
hi...
i posted the code earlier but it wasnt quite readbale... ive added a few comments and made the indentation problem right...
the problem is that it doent seem to be working... ive almost pulled out my hair tryin to fix the prob
another wierd thing is that it worksthe 1st time when i... (0 Replies)
Discussion started by: strider
0 Replies
6. Shell Programming and Scripting
I want to display a message when the script is done running, but I do not want to use echo. Is there another command I can use besides echo? If so, show me how it is done. (1 Reply)
Discussion started by: dshea0001
1 Replies
7. UNIX for Dummies Questions & Answers
Is there any way we can view the *.msg files in unix / linux ?
Example cat aa.msg
Or Do we need to do any decryption ?
Kindly provide the solution? (0 Replies)
Discussion started by: kingganesh04
0 Replies
8. Shell Programming and Scripting
Hi,
I have a script to determine the max memory to set a worker to start up at. The variable will need to end up being "-Xmx512m" or "-Xmx256m" or "-Xmx768m."
Everything works fine BUT when I set the "MEMORY" variable I get the "Cmmand not foundine 40: -Xmx512m" msg though the variable is the... (5 Replies)
Discussion started by: vsekvsek
5 Replies
9. AIX
When i run errpt -a, the output was below:
---------------------------------------------------------------------------
LABEL: DMPCHK_NOSPACE
IDENTIFIER: F89FB899
Date/Time: Tue Jan 17 15:00:02 BEIS
Sequence Number: 28998
Machine Id: 0058C0CE4C00
Node Id: ... (2 Replies)
Discussion started by: Ivanku
2 Replies
10. Shell Programming and Scripting
I have a requirement to display a part of an html response that my application gets. The response looks like this:
<html><a href='com.aprisma.spectrum.app.sd.client.SDHyperlinkHandler' sdTicketHandle='cr:419900' ocAlarmId='506618ea-f013-102d-02a7-0050569d7aa8'... (3 Replies)
Discussion started by: dlundwall
3 Replies
LEARN ABOUT DEBIAN
test::script
Test::Script(3pm) User Contributed Perl Documentation Test::Script(3pm)
NAME
Test::Script - Basic cross-platform tests for scripts
DESCRIPTION
The intent of this module is to provide a series of basic tests for 80% of the testing you will need to do for scripts in the script (or
bin as is also commonly used) paths of your Perl distribution.
Further, it aims to provide this functionality with perfect platform-compatibility, and in a way that is as unobtrusive as possible.
That is, if the program works on a platform, then Test::Script should always work on that platform as well. Anything less than 100% is
considered unacceptable.
In doing so, it is hoped that Test::Script can become a module that you can safely make a dependency of all your modules, without risking
that your module won't on some platform because of the dependency.
Where a clash exists between wanting more functionality and maintaining platform safety, this module will err on the side of platform
safety.
FUNCTIONS
script_compiles
script_compiles( 'script/foo.pl', 'Main script compiles' );
The "script_compiles" test calls the script with "perl -c script.pl", and checks that it returns without error.
The path it should be passed is a relative unix-format script name. This will be localised when running "perl -c" and if the test fails the
local name used will be shown in the diagnostic output.
Note also that the test will be run with the same perl interpreter that is running the test script (and not with the default system perl).
This will also be shown in the diagnostic output on failure.
script_runs
script_runs( 'script/foo.pl', 'Main script runs' );
The "script_runs" test executes the script with "perl script.pl" and checks that it returns success.
The path it should be passed is a relative unix-format script name. This will be localised when running "perl -c" and if the test fails the
local name used will be shown in the diagnostic output.
The test will be run with the same perl interpreter that is running the test script (and not with the default system perl). This will also
be shown in the diagnostic output on failure.
SUPPORT
All bugs should be filed via the bug tracker at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Script>
For other issues, or commercial enhancement and support, contact the author.
AUTHOR
Adam Kennedy <adamk@cpan.org>
SEE ALSO
prove, <http://ali.as/>
COPYRIGHT
Copyright 2006 - 2009 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.10.1 2009-11-24 Test::Script(3pm)