Sponsored Content
Full Discussion: script for continous ping
Operating Systems Linux Red Hat script for continous ping Post 302627179 by amarlinux on Friday 20th of April 2012 09:47:25 AM
Old 04-20-2012
Thanks for the response!
Can you please provide the actual syntax.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

To remove Continous blank spaces from a file in UNIX

All... I want to remove blank spaces in file . I just leraned that we can use " cat <Input filename> | tr -s ‘ ‘ > <Target file name> " i also know with SED we can replace a blank space by other character by sed s/ /*/g filename. Please let me know how can i do that by... (1 Reply)
Discussion started by: arunkumar_mca
1 Replies

2. UNIX for Advanced & Expert Users

Continous Integration for Unix / Linux

Hi all, We have serious problem with continuous integration system for application building on few different platforms. (aix 5.2, 5.3 solaris 8,9 , SUSE Linux 9.3, 10 , Slackware Linux 10,11,12, RedHAt Enterprise Linux и Windows 2003) We need application ( program ) to do the following tasks:... (1 Reply)
Discussion started by: +Yan
1 Replies

3. UNIX for Dummies Questions & Answers

To run a job continous (24x7)

Hi All, I have a job. I need to create a shell script which will execute that job continously i.e 24x7. Please help me in writing this script. Thanks, Kumar66 (6 Replies)
Discussion started by: kumar66
6 Replies

4. Shell Programming and Scripting

Awk Print Only Continous Numbers

Hi, i need help to print only those numbers which occur next to each other from a file. Input: 1 2 3 9 44 45 46 77 79 80 81 Desired Output: (8 Replies)
Discussion started by: saint2006
8 Replies

5. Shell Programming and Scripting

Need bash script to ping the servers and rename the output file each time the script is ran

HI, I have a file serverlist in that all host names are placed. i have written a small script #./testping #! /bin/bash for i in `cat serverlist` do ping $i >> output.txt done so now it creates a file output.txt till here fine.. now each time i run this script the output file... (4 Replies)
Discussion started by: madhudeva
4 Replies

6. UNIX for Dummies Questions & Answers

help with continous scroll

I figured out my question. mods please delete. Thank you (2 Replies)
Discussion started by: rpmischris
2 Replies

7. Shell Programming and Scripting

Extract & Manipulate continous data stream-- tcpdump

Hello; I have this rather tricky problem to solve --(to me, anyways) .. I am processing the following one liner with tcpdump.. tcpdump -i T3501 -A ether host 00:1e:49:29:fc:c9 or ether host 00:1b:2b:86:ec:1b or ether host 00:21:1c:98:a4:08 and net 149.83.6.0/24 | grep --line-buffered -B... (5 Replies)
Discussion started by: delphys
5 Replies

8. Programming

Ping test sends mail when ping fails

help with bash script! im am working on this script to make sure my server will stay online, so i made this script.. HOSTS="192.168.138.155" COUNT=4 pingtest(){ for myhost in "$@" do ping -c "$COUNT" "$myhost" &&return 1 done return 0 } if pingtest $HOSTS #100% failed... (4 Replies)
Discussion started by: mort3924
4 Replies
mms_send_cmd(3MMS)				     Media Management System Library Functions					mms_send_cmd(3MMS)

NAME
mms_send_cmd, mms_send_acmd, mms_read_response, mms_free_rsp - communication functions for MMS client SYNOPSIS
cc [ flag...] file... -lmms [ library...] #include <mms_api.h> int mms_send_cmd(void *session, char *cmd, void **rsp); int mms_send_acmd(void *session, char *cmd, void (*callbk)(void *arg, void *arg1), void callbk_parm); int mms_read_response(void *session, char *tid, void **rsp); void mms_free_rsp(void *rsp); DESCRIPTION
For these functions, session specifies which session to use to communicate with the MMS. The mms_send_cmd() function sends an MMP command cmd with a task ID of tid to MMS. On successful completion of the command, the response is returned in rsp. This function can be used in either a synchronous or asynchronous session. The mms_send_acmd() function sends an MMP command cmd with a task ID of tid to MMS, but does not wait for a response from MMS. When a response is received, the API invokes the call back function callbk, passing callbk_parm as the first argument and the response as the sec- ond argument. This function can only be used in an asynchronous session. The mms_read_response() function obtains additional responses if the response to mms_send_cmd() or mms_send_acmd() function returned an "intermediate" response. This occurs when the response exceeds the allowed size and has to be delivered in several separate responses. The mms_free_rsp() function frees the memory associated with a response from one of the communication functions. Response Types There are five possible responses from MMS: cancelled The client cancelled the command prior to MMS starting execution of it. error The command failed to be executed. The format of the error response contains a error class and code indicating the type of failure that occurred. An optional error message may also be specified. intermediate The response contains data that exceeds a preset memory size that a response can contain. If a command generates a response that exceeds the preset memory size, MMS breaks the response into a series of responses consisting of one or more interme- diate responses followed by a success response. Each of the intermediate responses and the success response will contain a valid response structure that the client can process individually. success The command has completed successfully. The data that is returned with the success response is dependent on what the com- mand requested for a report. unacceptable The syntax of the command the client sent to MMS was invalid. RETURN VALUES
Upon successful completion, MMS_API_OK is returned. If a function encounters a processing error, it returns an error code indicating the type of error. ERRORS
These functions will fail if: MMS_API_ERR Unrecoverable internal processing error occurred. MMS_API_NOT_ERR_RSP Response is not an error response. MMS_API_SHUTDOWN Client has shut down API. MMS_ASYNC_API_FAILURE Reader thread unable to obtain reader mutex. MMS_CFG_FILE_ERR Unable to open watcher daemon's network configuration file. MMS_E_CONNECT_ERR Failed to connect to MMS. MMS_E_INVALID_RESPONSE Invalid MMS response to command. MMS_E_NET_IO_ERR Connection failure to MMS. MMS_E_SYNTAX_ERR MMS response contained a syntax error. MMS_ERR_BIAS Unknown Error code. MMS_INVALID_RSP Unknown response type received. MMS_MALLOC_ERROR Unable to allocate required space. MMS_MISSING_TASKID Unable to find task ID in response. MMS_SELECT_ERROR Select system call failed. MMS_TRACE_FAILURE Unable to open API's trace file. MMS_WRONG_API_MODE API session does not support this API command. MMS_WRONG_TASKID Wrong task ID found for accept response. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Uncommitted | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
libmms(3LIB), mms_rsp_type(3MMS), mms_init(3MMS), attributes(5) SunOS 5.11 28 Oct 2008 mms_send_cmd(3MMS)
All times are GMT -4. The time now is 04:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy