Sponsored Content
Full Discussion: backslashing periods
Top Forums UNIX for Dummies Questions & Answers backslashing periods Post 302368215 by Bloke on Wednesday 4th of November 2009 10:22:04 AM
Old 11-04-2009
backslashing periods

Hello,

I have a script which configures a system,
the configuration is currently manual and error prone.

I am writting a script, which currently uses hard-coded values.

I don't know how to take an IP, e.g. 123.456.789.111, and backslash the periods, so I can pass it to an
PHP Code:
`exec perl blah sips:6000\@123\.456\.678\.111:5061
Any ideas guys?
 

3 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

get the file extension having multiple periods

How to get the file extension having multiple periods suppose i have a file samplewprk.txt.dat I need to retrieve txt.dat from the file. I worked all iam getting is either txt or pyd Could anyone help me in providing the solution? Thanks, in advance (3 Replies)
Discussion started by: chinku
3 Replies

2. Shell Programming and Scripting

Split and name files as 15 minute periods

Hi, I have a number of large files (up to 4GB) that I wish to split in 96 parts e.g. one for each 15 minutes of the day. The split can be random so I am using split -b 42M filename.csv I want to name each of the resultant files as a distinct 15 minute period of the day e.g. ... (10 Replies)
Discussion started by: ksexton
10 Replies

3. Shell Programming and Scripting

Periods turn into spaces for some reason

Hey all, I've come across a problem that I can't solve. Its as simple as it can get. I want to substitute spaces in a string with dots e.g. i am a string i.am.a.string I've tried examples from the web that should work but they don't. A period seems to become a space for some reason :s ... (5 Replies)
Discussion started by: basherlemon
5 Replies
MRTG-PING-PROBE(1)					      General Commands Manual						MRTG-PING-PROBE(1)

NAME
mrtg-ping-probe - ping probe module for Multi Router Traffic Grapher DESCRIPTION
mrtg-ping-probe is a ping probe module for MRTG 2.x. It is used to monitor the round trip time and packet loss to networked devices. MRTG uses the output of mrtg-ping-probe to generate graphs visualizing minimum and maximum round trip times or packet loss. mrtg-ping-probe is not run directly, but is called by MRTG as a helper when it needs to determine ping time to a host. Act responsibly: do not use mrtg-ping-probe to ping devices without the owner's permission. Just imagine if 10,000 people decided to ping your hosts! mrtg-ping-probe is meant to be used within your network to get round trip time performance figures for your network. OPTIONS
To use mrtg-ping-probe you need to configure MRTG to call it from within the definition of a target host. This is done in the MRTG config file, which is usually /etc/mrtg.conf. Here's an example snippet: change the target name and IP address to suit your needs. Target[your.target.ping]: `/usr/bin/mrtg-ping-probe 123.456.789.123` SetEnv[your.target.ping]: MRTG_INT_IP="123.456.789.123" MRTG_INT_DESCR="ping" MaxBytes[your.target.ping]: 100 AbsMax[your.target.ping]: 200 Options[your.target.ping]: gauge, growright YLegend[your.target.ping]: ping time (ms) ShortLegend[your.target.ping]: ms Legend1[your.target.ping]: Maximum Round Trip Time in ms Legend2[your.target.ping]: Minimum Round Trip Time in ms Legend3[your.target.ping]: Maximal 5 Minute Maximum Round Trip Time in ms Legend4[your.target.ping]: Maximal 5 Minute Minimum Round Trip Time in ms LegendI[your.target.ping]:  Max: LegendO[your.target.ping]:  Min: Pay close attention to the backticks in the first line which tell MRTG to execute the nominated external program. Note also that you need to use the "gauge" option, since the results of subsequent ping probes are independant values and not an incrementing counter. SEE ALSO
mrtg(1). The latest release of mrtg-ping-probe can be found on the web at http://pwo.de/projects/mrtg/ AUTHOR
This manual page was written by Jonathan Oxer <jon@debian.org>, for the Debian project (but may be used by others). April 14, 2003 MRTG-PING-PROBE(1)
All times are GMT -4. The time now is 03:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy