Sponsored Content
Full Discussion: if test case in korn shell
Top Forums UNIX for Dummies Questions & Answers if test case in korn shell Post 302179723 by fluke_perf on Friday 28th of March 2008 11:13:16 AM
Old 03-28-2008
if test case in korn shell

hi,

I am new to this forum and this is my first post. I am not too familiar with scripting so I will be spending a lot of time here.

I am trying to understand a ksh script.


NSCA=/bin/send_nsca

if [[ -e "$NSCA" ]]



What does the -e check for?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

lower case to upper case string conversion in shell script

How can convert a Lower case variable value to an upper case in the kron shell script. (3 Replies)
Discussion started by: dchalavadi
3 Replies

2. Programming

Ignore case in a test?

How do I ignore the case in an if condition..? EDIT: I put this in the wrong board...this is a linux script. if then echo "Same name." else echo "Different name." fi (1 Reply)
Discussion started by: Bandit390
1 Replies

3. Shell Programming and Scripting

[Solved] Change Upper case to Lower case in C shell

Is there a command that can switch a character variable from UPPER case to lower case? like foreach AC ( ABC BCD PLL QIO) set ac `COMMAND($AC)` ... end Thanks a lot! (3 Replies)
Discussion started by: rockytodd
3 Replies

4. Shell Programming and Scripting

PERL - traverse sub directories and get test case results

Hello, I need help in creating a PERL script for parsing test result files to get the results (pass or fail). Each test case execution generates a directory with few files among which we are interested in .result file. Lets say Testing is home directory. If i executed 2 test cases. It will... (4 Replies)
Discussion started by: ravi.videla
4 Replies

5. Shell Programming and Scripting

Prefixing test case methods with letter 'test'

Hi, I have a Python unit test cases source code file which contains more than a hundred test case methods. In that, some of the test case methods already have prefix 'test' where as some of them do not have. Now, I need to add the string 'test' (case-sensitive) as a prefix to those of the... (5 Replies)
Discussion started by: royalibrahim
5 Replies

6. UNIX for Advanced & Expert Users

Lower case test condition

I want to locate directories that are upper, lower or have both upper and lower cases. What I have is: find /tmp/$var2 -type d' " ); && echo "host case is incorrect" || echo "host case is correct" This actually is part of a larger script and it does work but the problem is that it... (3 Replies)
Discussion started by: newbie2010
3 Replies

7. Shell Programming and Scripting

Trying to test for both upper and lower case directories

I am trying to get a script to print out whether a directory is lowercase uppercase or both. This is what I've got so far: echo -e read "enter name" read server for DIR in $(find /tmp/$server -type d -prune | sed 's/\.\///g');do if expr match "$server" "*$" > /dev/null; then echo "$server -... (7 Replies)
Discussion started by: newbie2010
7 Replies

8. Shell Programming and Scripting

Pass values to case statement in a function korn shell

I'm in the process of writng a function that consists of a case statement is there a way of calling the function and passing a value to it? ie function1 () { case opt1 do ..... opt2 do..... esac } function opt1 I'm aware the syntax is not correct, but you get the general idea. (1 Reply)
Discussion started by: squrcles
1 Replies

9. Shell Programming and Scripting

Test command non case specific string comparision

Hi, I want to do caseless string comparision using test command for eg: Ind_f="y" test "$Ind_f" == "y|Y" i tried , ** , nothing worked. any thoughts on how to do case insensitive string comparison using test command without converting to any particular case using typeset or tr? (8 Replies)
Discussion started by: Kulasekar
8 Replies

10. Cybersecurity

DOS resistance Test case help

Hello, I am testing a new software and i need to run also one test case to prove that the device is resistant to DOS attack. I tried using some tools to perform attacks to the machine but i am a little bit confused what i really have to check to prove that the machine have protection against... (0 Replies)
Discussion started by: @dagio
0 Replies
send_nsca(1)						      General Commands Manual						      send_nsca(1)

NAME
send_nsca - send passive check results to an NSCA daemon SYNOPSIS
send_nsca -H <host_address> [-p port] [-to to_sec] [-d delim] [ -c config_file] DESCRIPTION
send_nsca This utility is used to send passive check results to the NSCA daemon. Host and Service check data that is to be sent to the NSCA daemon is read from standard input. Input should be provided in the following format (tab-delimited unless overriden with -d command line argument, one entry per line): Service Checks <host> <svc_description> <return_code> <plugin_output> Host Checks: <host> <return_code> <plugin_output> OPTIONS
host_address The IP address of the host running the NSCA daemon port The port on which the daemon is running - default is 5667 to_sec Number of seconds before connection attempt times out. (default timeout is 10 seconds) delim Delimiter to use when parsing input (defaults to a tab) config_file Name of config file to use SEE ALSO
nsca(1) FILES
/etc/nsca.cfg nsca server configuration /etc/send_nsca.cfg send_nsca configuration AUTHOR
NSCA was written by Ethan Galstad <nagios@nagios.org>. This manpage was written by sean finney <seanius@debian.org> for Debian (but it may be freely used, modified, and redistributed by others). nsca December 2005 send_nsca(1)
All times are GMT -4. The time now is 05:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy