08-16-2008
Triggering my Unix script....
Hi All,
i dont have any idea about perl scripting...
i need some suggestion so that i can put my effort to find out the solution
let me explain....one of my tedious task which will taken care by Unix shell script which i prepared.
its a kind of routine work that i am running the script and getting the output through mail....
what i want here is.....there should be a web screen where anyone can give the input (eg: 001245625 landline number) so that should trigger my unix scripts like parsing arguments and the output of my unix script should redirect to the same web screen where that should get populate...
Hope this can be done by perl and CGI .....sorry i dont have any idea how to do this....
can any one guide me...so that i can try..
Help would be much appreciated..
Thanks in advance.
Sha
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
gang,
I have a need for a utility that will 'watch' a directory and when a file pops into it, it will run a script on the file. More specifically, it will pgp decrypt the file that pops into the directory.
Our Security guys aren't comfortable with the 'normal' users on our system being able... (1 Reply)
Discussion started by: hedrict
1 Replies
2. Windows & DOS: Issues & Discussions
Hello,
Is there a way to trigger a Windows bat file or program on a different machine from a different UNIX server using KSC file?
I hope you can assist me with this.
Thanks! (0 Replies)
Discussion started by: punyenye
0 Replies
3. Shell Programming and Scripting
Hi Every One
I have a Compilation Script name scomp which takes the Program name as the command line argument
I have around 10000 Programs to compile while each program takes around 10 mins to compile
i have written a Mass Compile script Scripts which takes the list of programs as input... (15 Replies)
Discussion started by: pbsrinivas
15 Replies
4. UNIX for Dummies Questions & Answers
Script_A.sh has
echo "In am in script A"
ksh ## K-shell is invoked.
Script B.sh ## which I am writing...
./script_A.sh
echo "I am in script B"
return 0
When I run:
$> Script_B.sh
$> I am in script A
$>
Basically, on calling Script_A.sh from within Script_B.sh I have the issue of... (2 Replies)
Discussion started by: baivab
2 Replies
5. Solaris
HI,
I want to trigger a UNIX command from a web browser page.
The web browser will have few steps which will generate the UNIX command and then it should connect to the UNIX box and fire that command.
Here we are using Sun Solaris UNIX.
Can you please suggest me how can i get... (6 Replies)
Discussion started by: dear_abhi2007
6 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have very little knowledge with unix and pmcmd. I need help with a issue.
I have to see whether a file has been dropped in a particular location/path. If the file dropped I have to check the last modified time, which should be greater than 8pmEST the prior day. If the file has been... (4 Replies)
Discussion started by: redwolves
4 Replies
7. Shell Programming and Scripting
I m trying to run a batch script in remote desktop which executes unix commands on the unix server...the problem is i wnt the output in HTML format.so in my batch script i m giving the cmd like
ssh hostname path ksh HC_Report.ksh>out.html
...but it generates the HTML file in
remote desktop .i... (2 Replies)
Discussion started by: navsan
2 Replies
8. Shell Programming and Scripting
Hi I am trying to implement one program, where JAVA needs to trigger the backend UNIX script. Tried with options like
String cmdArray = {"/bin/ksh","-c","/SCRIPT_ABSOLUTE_PATH/sampleScript.ksh /FILE_ABSOLUTE_PATH Test_File.dat TEST E SFTP"}
When I trigger the script from front end with... (1 Reply)
Discussion started by: karumudi7
1 Replies
9. Shell Programming and Scripting
I have a mail server configured on my server (Postfix), I have a script which requires input to be provided to it.
I would like to know if there is a possibility to trigger this script by sending mail to the server.
This is what I am thinking:
Once the mail arrives on server, the mail will... (6 Replies)
Discussion started by: davidbob
6 Replies
LEARN ABOUT DEBIAN
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://oss.oetiker.ch/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
to your mrtg config file.
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
databases.
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 demand by using a cgi script.
At the moment there is no official script to do this, but two contributers have created such scripts:
One4All aka 14all.cgi
This was the first program to take over the webpage creation and graphing task. It has been developed by Rainer Bawidamann
rainer.bawidamann@web.de. You can find a copy on Rainers website: http://my14all.sourceforge.net/ The program comes with its own
documentation
routers2.cgi
This is another CGI frontend for mrtg running with rrdtool. The main difference between this and 14all is that the web pages it creates
are much more stylish than the ones from mrtg, plus they support User Defined summary graphs and different levels of Authentication and
Authorisation. This has been written by Steve Shipway (steve@steveshipway.org). You obtain a copy, and find a forum and demonstration
system at http://www.steveshipway.org/software/ The program comes with its own installation instructions and install script.
mrtg-rrd
The mrtg-rrd script is a CGI/FastCGI application by Jan "Yenya" Kasprzak for displaying MRTG graphs from data in the RRDtool format. It
is an intended replacement for the 14all.cgi script. It can make your monitoring system faster because MRTG does not have to generate
all the PNG files with graphs every 5 minutes or so. Instead of this the graphs are generated on-demand when the user wants to see
them. http://www.fi.muni.cz/~kas/mrtg-rrd/
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 <tobi@oetiker.ch>
2.17.4 2012-01-12 MRTG-RRD(1)