10-08-2000
I was wondering how I can create a link to the perl interpreter.
On my old machine perl is at: user/local/bin/perl
and my new machine has it at: user/bin/perl
I don't want to have to change all my cgi scripts when I move them to the new server. Can I just create a new directory (user/local/bin/perl) and provide some sort of link to perl?
How?
Thanks.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi!
I want to write a script that will create an archive (via tar) that will restrict the size of the tar file. The size can be constrained using the keyword 'k' and providing the size restriction. The problem is that the script needs to know (detect) when the tar command prompts the user (which... (2 Replies)
Discussion started by: mitch8
2 Replies
2. Shell Programming and Scripting
Dear Friends,
I have a flat file from which I want to grep line no. 7,10, 19 to 35, 37.
How can it be done?
Thank you in advance
Anushree (6 Replies)
Discussion started by: anushree.a
6 Replies
3. Shell Programming and Scripting
Hello,
Question is related to Perl:
I need to search few of the files from the array of file names.
And after grepping the file names from an array I need to link these files to original location. The original location in this case is ref_path as input from the user.
##$ref_path is... (3 Replies)
Discussion started by: aarora1
3 Replies
4. Shell Programming and Scripting
I'm really new to even doing a bash "hello world" script, so maybe someone would know how to do the following task, using bash scripting
Need to login using ssh from one dell server into another dell server, and obtain the raid battery status, using dell's open manage software commands; then... (5 Replies)
Discussion started by: AJ-102111
5 Replies
5. Shell Programming and Scripting
Hello, All. This is my first post here, and I expect that the answer is simple, but I can't find it. Might be the way I'm searching. I'm fairly new to Unix/Linux, and I'm writing a Korn Shell Script. I am trying to provide a value that is already in a variable to awk so that awk can pull out the... (3 Replies)
Discussion started by: compguy74
3 Replies
6. Programming
Hello All,
I've encountered a strange behaviour from g++ that doesn't make sense to me. Maybe you can shed some light on it:
I have a bunch of source files and want to compile them and link them with a static library liba.a located in /usr/local/lib64 into an executable
Approach 1 works... (0 Replies)
Discussion started by: magelord
0 Replies
7. UNIX for Advanced & Expert Users
hello,
is it a behavior of or
that "-i" removes unix link .
example :
i create a file "src_file" and link it to "link_file" and then i start "perl -i"
the link is removed. does another option exists to change content of a file without temporary files ?
UNIX-Version: HP-UX and... (2 Replies)
Discussion started by: bora99
2 Replies
8. Shell Programming and Scripting
Morning Guys,
I am attempting to awk a file which strings in the file is only 6 characters long and not more.
Currently it is counting every line and giving a count of 59, but it should be 57 (not including the long baracode - 004705CIM*****)
" awk '/./ {cnt++} END {print cnt}'... (11 Replies)
Discussion started by: Junes
11 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am thinking to increase my knowledge towards shell scripting and tcl scripting.
The thing is, please suggest me a script which i can code is useful in learning as well as to project it to my team mates and it is helpful to all my office team mates.
I'll give you an idea of what we... (4 Replies)
Discussion started by: Syed Imran
4 Replies
LEARN ABOUT REDHAT
mrtg-rrd
MRTG-RRD(1) mrtg MRTG-RRD(1)
NAME
mrtg-rrd - How to use RRDtool with MRTG
SYNOPSIS
After using MRTG for some time you may find some limitations. Mostly in the areas of performance and graphing flexibility. These are
exactly the areas addressed by rrdtool. To learn more about RRDtool check out its website on
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool
RRDTOOL INTEGRATION
When using mrtg with RRDtool you are replacing rateup with the RRDtool perl module RRDs.pm. To enable RRDtool support in mrtg you have to
add the line
LogFormat: rrdtool
MRTG needs access to both the RRDtool perl module RRDs.pm and to the rrdtool executable.
If these two items are not installed in locations where perl can find them on its own, then you can use the following two parameters to
supply the appropriate directories.
For the location of the rrdtool executable you put
PathAdd: /usr/local/rrdtool/bin/
or
PathAdd: c:
rdtoolin
For the location of the perl module it would be:
LibAdd: /usr/local/rrdtool/lib/perl/
or
LibAdd: c:
rdtoolinlibperl
When you have made this modification to the configuration file, several things will happen when you run mrtg again with the new config
file:
1. mrtg will take all your old ".log" files and convert them to ".rrd" format. (The ".log" files don't get touched in the process, so if
things don't work out they are still there.)
2. mrtg will use rrdtool to update its databases. These will have a new format called rrd which is totally different than the native log
format of the classic mrtg.
3. mrtg will not create any webpages of graphs anymore. It will only query the routers for traffic information and update its rrd data-
bases.
The advantage of whole thing is that the mrtg will become much faster. Expect the runtime to drop to 20% of the previous value. (I would
like to get some feedback on this from folks with large installations)
Mind you though, while the logging process of RRDtool is very fast, you are also gaining some time by neither creating graphs nor updating
webpages. The idea behind this is that it is more efficient to create graphs and webpages on demmand. Using a cgi script.
At the moment there is no official script to do this, but two contributers have created such scripts:
14all.cgi
Was the first program to take over the webpage creation and graphing task. It has been developed by Rainer Bawidamann <Rainer.Baw-
idamann@informatik.uni-ulm.de>. You can find a copy on Rainers website:
http://www.uni-ulm.de/~rbawidam/mrtg-rrd/
The program comes with its own documentation
routers.cgi, servers.cgi and generic.cgi
are other cgi frontends to mrtg running with rrdtool. Thier main difference to 14all is, that the web pages it creates are much more
stylish than the ones from mrtg. These tools have been written by Steve Shipway <steve.shipway@adsweu.com>. You can find a copy in
http://www.cheshire.demon.co.uk/pub/
The scripts comes with their own installation instructions.
FUTURE
Just as a side note: MRTG-3 will be based entirely on rrdtool technology. But don't wait for it ... get going now!
AUTHOR
Tobias Oetiker <oetiker@ee.ethz.ch>
3rd Berkeley Distribution 2.9.17 MRTG-RRD(1)