Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to write the dates between 2 dates into a file Post 302659173 by shamrock on Wednesday 20th of June 2012 12:21:53 PM
Old 06-20-2012
Quote:
Originally Posted by dsfreddie
Hi Shamrock,

Our environment doesn't support PERL. Smilie
You mean perl isnt installed...there is a big difference between not installed and not supported and i think there isnt a linux distro that doesnt support perl...talk to your sysadmin and [s]he can install perl for you.
Quote:
Originally Posted by dsfreddie
Is there a way we can accomplish this in LINUX coding

Thanks
Freddie
What Linux distro are you running...as the date command on linux systems is very powerful unlike the one on older unix systems.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help to switch dates from a file

Hi. I need some assistance with a file who at the end i must import to EXCEL. The problem is that i have a file with this inside: Output: JOBID START TIME END TIME ELAPSED CPU ------------------------------------------------------------ AVERAGE: ... (2 Replies)
Discussion started by: osramos
2 Replies

2. Shell Programming and Scripting

Need script to generate all the dates in DDMMYY format between 2 dates

Hello friends, I am looking for a script or method that can display all the dates between any 2 given dates. Input: Date 1 290109 Date 2 010209 Output: 300109 310109 Please help me. Thanks. :):confused: (2 Replies)
Discussion started by: frozensmilz
2 Replies

3. UNIX for Dummies Questions & Answers

Extract dates from file name.

Hi All, I have files with names as us_Gec1_wk_01to01_2008.TXT ad_EngEnt_wk_01to10_2008.TXT br_EngMov_wk_01to10_2008.TXT Over here, I need to extract the dates and the year and store them in variables. How can I achieve the same in bash. In case of ad_EngEnt_wk_01to10_2008.TXT ... (3 Replies)
Discussion started by: Swapna173
3 Replies

4. Programming

SQL: find if a set od dates falls in another set of dates

Don't know if it is important: Debian Linux / MySQL 5.1 I have a table: media_id int(8) group_id int(8) type_id int(8) expiration date start date cust_id int(8) num_runs int(8) preferred_time int(8) edit_date timestamp ON UPDATE CURRENT_TIMESTAMP id... (0 Replies)
Discussion started by: vertical98
0 Replies

5. Emergency UNIX and Linux Support

Replacing dates]] with (dates)]]

Hi guys, For my wiki site I need to fix 1400 pages that use the wrong date format, most pages (not all) use eg. 1988]] I need to change that to (1988)]] The date range goes back to 1400 so I guess I need to do the following ssh into my server, dump mysql database vi .sql dump search... (20 Replies)
Discussion started by: lawstudent
20 Replies

6. Shell Programming and Scripting

Generating dates between two dates

HI, i have row like this HHH100037440313438961000201001012012073110220002 N in this i have 2 dates in pos 25-32 and 33-40 , so based upon the se two dates , i need to generated records between these two values so in the above record 20100101 and 20120731 need to genearte rows like this... (4 Replies)
Discussion started by: sathishsr
4 Replies

7. UNIX for Advanced & Expert Users

How to get the Missing dates between two dates in the table?

Hi Am Using Unix Ksh ... I have a Table called date select * from date ; Date 01/02/2013 06/02/2013 I need the output as Missing Date 01/02/2013 02/02/2013 03/02/2013 04/02/2013 05/02/2013 06/02/2013 (2 Replies)
Discussion started by: Venkatesh1
2 Replies

8. Shell Programming and Scripting

Replacing the Dates in a file

Hello Gurus, I'm beginner in Shell scripting. I got a requirement to write a script. I have a file with below (similar) content If you can observe above content, there are many date values existed (with different dates) in a format: ddMonyyyy I have to write replace all these... (7 Replies)
Discussion started by: raghu.iv85
7 Replies

9. Shell Programming and Scripting

Display dates between two dates

Hi All, I have 2 dates in mm/dd format. sdate=10/01 (October 01) edate=10/10 (October 10) I need the dates in between these 2 dates like below. 10/01 10/02 10/03 10/04 10/05 10/06 10/07 10/08 (1 Reply)
Discussion started by: jayadanabalan
1 Replies

10. What is on Your Mind?

Grep file containing dates

How to grep a file containing dates to only last 30 days then move to another folder (7 Replies)
Discussion started by: kmarcus
7 Replies
SMOKEPING_INSTALL(7)						     SmokePing						      SMOKEPING_INSTALL(7)

NAME
smokeping_install - How to install SmokePing OVERVIEW
This document explains how to setup SmokePing at your site. DESCRIPTION
Prerequisites SmokePing does not stand alone. It relies on various other tools and services being present. Apart from a Unix OS and a working Perl installation you need the following components: RRDtool 1.2.x or later Smokeping uses RRDtool for logging and graphing. If your linux distro provides an rrdtool package with perl support, use this. If you want to get the latest and greatest version, compile your own: <http://oss.oetiker.ch/rrdtool/> FPing (optional) The official site <http://fping.sourceforge.net/> seems to be a bit unmaintained. You might want to grab an updated version of fping from <http://oss.oetiker.ch/smokeping/pub/>. Note that fping must be installed setuid root. It seems that older versions of fping report round trip times in 0.1 milliseconds instead of 1 milliseconds as advertised ... SmokePing tries to figure this out. It tells you when it starts ... let me know if it gets it wrong. EchoPing (Optional) <http://echoping.sourceforge.net/> You need this to run the EchoPing probes Curl (Optional) <http://curl.haxx.se/> You need this for the Curl probe. dig (Optional) <http://www.isc.org/sw/bind/> You need this for the DNS probe. SSH (Optional) <http://www.openssh.org/> You need this for the SSH probe. Webserver <http://httpd.apache.org/> Well I won't get much into this. The important thing is, to have a webserver which allows you to run CGI and preferably FastCGI scripts. If you are using Apache I strongly recommend using the suexec system for running CGI scripts as a particular user. See <http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html> and <http://httpd.apache.org/docs/2.2/mod/mod_suexec.html> for more information on this. Perl 5.8.8 or later. If you still have an older version, maybe have a look at perlbrew. Various Perl modules (Many are optional) The modules are all available from <http://www.cpan.org> and you may be able to get them as packages from your distro's repository. There is also a script provided in the setup folder to install the missing bits. You will be instructed later on how to use the script. FCGI The module for supporting FastCGI operation. CGI, CGI::Fast Perl CGI/FastCGI support. Might already be installed localy. Config::Grammar The configuration file parser used in smokeping LWP The master/slave functionality introduced a dependency on LWP::UserAgent from the libwww-perl (also known as LWP) library. The module is required even if the master/slave mode is not enabled. Socket6 (optional) The Socket6 module enables smokeping to check hostnames that only resolve to an IPv6 address. If you probe such hosts using ie. the FPing6 probe and get warnings that those hosts don't resolve to an IP address, you need to install it. Net::Telnet (optional) You need this for the TelnetIOSPing probe. Net::OpenSSH (optional) You need this for the OpenSSHJunOSPing probe. Net::DNS (optional) You need this for the AnotherDNS probe. Net::LDAP (optional) You need this for the LDAP probe. IO::Socket::SSL (optional) You need this if you want the LDAP probe to be able to use the 'starttls' command. Authen::Radius (optional) You need this for the Radius probe. Installation Once the tools listed above are in place, you can start setting up SmokePing itself. Unpack the tar archive and run the included configure script: ./configure --prefix=/opt/smokeping Configure will verify that all the required perl modules are available. If some are missing it will tell you to run the module build script. Just follow the instructions on screen and then run configure again. Once it completes, you can run make install to finish your setup. Configuration Use the etc/config.dist file as a template to create your own smokeping configuration file. See smokeping_config for details. Installing the webinterface Copy the content of the PREFIX/htdocs directory to the place where your webserver expects its data. Maybe to /var/www/smokeping. Edit the smokeping.fcgi script to point to your smokeping_cgi script. If you have no FastCGI support in your webserver, you may want to use the smokeping.cgi script. etc/basepage.html Edit the html template to your likings. Please do not remove the link to the SmokePing counter and my name from the template. The content of the template will be renderd by smokeping.cgi. This means that all embedded links must be relative to smokeping.cgi. etc/smokemail If you are going to use the DYNAMIC IP support, customize the contents of this file. Starting the Smokeping Daemon With all the scaffolding in place, you can now launch the smokeping daemon and have it gather data for you. First you may want to run it in debug mode to see what it is doing ./bin/smokeping --config=/opt/smokeping/etc/config --debug once all is well, start it up as a daemon. I would recomend you enable the logfile option so that you can see if it runs into trouble. ./bin/smokeping --config=/opt/smokeping/etc/config --logfile=smoke.log Once the system works, you may want to put a SmokePing startup script into your /etc/init.d tree. Check out smokeping for further information. You can now open the smokeping.cgi webpage to look at your data. See the smokeping_cgi documentation on how to setup the smokeping web interface. COPYRIGHT
Copyright (c) 2001, 2011 by Tobias Oetiker. All right reserved. LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. AUTHOR
Tobias Oetiker <tobi@oetiker.ch> 2.6.8 2012-02-26 SMOKEPING_INSTALL(7)
All times are GMT -4. The time now is 08:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy