02-08-2002
Calling privately installed module from script help please
hello,
i need help calling a privately installed module from a script. my server admin installed perl with the standard modules and simply no extras, including the LWP::Simple mod i need. (side note: ive asked for it to be installed).
in the meantime, i installed it (libwww-perl-5.62.tar.gz) into a privately created directory called 'myperl', using the steps decompress, unpack, build, install. on the 'build' step i entered:
$ perl Makefile.PL LIB=/home/virtual/admin/home/httpd/cgi-bin/myperl PREFIX=/home/virtual/admin/home/httpd/cgi-bin/myperl
everything seemed to work well... all mods are there.
my script (which is in cgi-bin/print directory) reads:
require 5;
use LWP::Simple;
cpan says to use one of the following:
1] foo@barbell$ setenv PERL5LIB /path/to/module sets the environment variable PERL5LIB.
2] use lib qw(/path/to/module); used at the top of your script tells perl where to find your module.
3] foo@barbell$ perl -I/path/to/module
in my script ive typed (one example of many variations ive tried):
require 5;
use LWP::Simple qw(/home/virtual/sbcadmin/home/httpd/cgi-bin/myperl/LWP/Simple.pm);
SIDE NOTE: my server info: Red Hat Linux release 6.0 (Hedwig)
Kernel 2.2.12-20ensim on an i686
is this simply something i cannot do without admin and root privileges or is my syntax incorrect somewhere?
thanks in advance,
sdiva
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Problem: I have a shell script that will be called by a Perl module that will connect to a db and delete rows. The Perl module will be called by CRON. I am using a Perl module to call a shell script because I need to get the db connection from Perl.
Here is the Perl pseudocode:
... (4 Replies)
Discussion started by: mh53j_fe
4 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have the following simple CGI script, just containg header:
#!/usr/bin/perl -w
use CGI ':standard';
use lib "/home/myname/lib/perl5/site_perl/5.8.5/";
use Mail::Sendmail;
I also have included this directive in ~/public_html/.htaccess :
SetEnv PERL5LIB... (0 Replies)
Discussion started by: monkfan
0 Replies
3. Linux
Hi all,
I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/.
I need to know if I can... (0 Replies)
Discussion started by: anitemp
0 Replies
4. Shell Programming and Scripting
Hi all,
I am having a script ScriptA which is calling a script ScriptB in the same server and copying files to second server and have to execute one script ScriptC in the second server. THis First script ScriptA is the main script and i have to execute this process continously.
for Keeping... (2 Replies)
Discussion started by: rohithji
2 Replies
5. Shell Programming and Scripting
All,
Is it possible to call a subroutine from the perl expect module after logging to a system that is within the same program. My situation is I need to run a logic inside a machine that I'm logging in using the expect module, the logic is also available in the same expect program.
Thanks,... (5 Replies)
Discussion started by: arun_maffy
5 Replies
6. Red Hat
Hey there,
i run 1: on my server (RHEL 6) and getting response that the libodbc is not installed. If i use yum for installation, it tells me, there is no package like this ( 2: ). Since in the description of Definiens is mentioned that the Run-time dependency is unixODBC (libodbc.so.1), I assume... (2 Replies)
Discussion started by: rkirsten
2 Replies
7. Shell Programming and Scripting
I am creating a startup script for an application. This application's startup script is in bash. It will also need to call a perl script (which I will not be able to modify) for the application environment prior to calling the application. The problem is that this perl script creates a new shell... (5 Replies)
Discussion started by: leepet01
5 Replies
8. Shell Programming and Scripting
Hi,
I am working on a sever A.
I want to write a perl script to execute a shell script persent on the server B.
please help me in this.
thanks in advance. (3 Replies)
Discussion started by: anandgodse
3 Replies
9. Shell Programming and Scripting
Hi,
I am an occasional PERL user. I am trying to call a sub routine (passing parameters) in perl module from a driver .pl file. I have been "tinkering" for a while now and have confused myself.
Could someone please look at the code below and spot where I am going wrong.
testPerl.pl
... (0 Replies)
Discussion started by: chris01010
0 Replies
10. UNIX for Beginners Questions & Answers
Hello Forum,
I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so:
APP=application --version
But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies
LEARN ABOUT DEBIAN
pod::simple::wiki::usemod
Pod::Simple::Wiki::Usemod(3pm) User Contributed Perl Documentation Pod::Simple::Wiki::Usemod(3pm)
NAME
Pod::Simple::Wiki::Usemod - A class for creating Pod to Usemod wiki filters.
SYNOPSIS
This module isn't used directly. Instead it is called via "Pod::Simple::Wiki":
#!/usr/bin/perl -w
use strict;
use Pod::Simple::Wiki;
my $parser = Pod::Simple::Wiki->new('usemod');
...
Convert Pod to a Usemod wiki format using the installed "pod2wiki" utility:
pod2wiki --style usemod file.pod > file.wiki
DESCRIPTION
The "Pod::Simple::Wiki::Usemod" module is used for converting Pod text to Wiki text.
Pod (Plain Old Documentation) is a simple markup language used for writing Perl documentation.
For an introduction to Usemod see: http://www.usemod.com/cgi-bin/wiki.pl
This module isn't generally invoked directly. Instead it is called via "Pod::Simple::Wiki". See the Pod::Simple::Wiki and pod2wiki
documentation for more information.
METHODS
Pod::Simple::Wiki::Usemod inherits all of the methods of "Pod::Simple" and "Pod::Simple::Wiki". See Pod::Simple and Pod::Simple::Wiki for
more details.
SEE ALSO
This module also installs a "pod2wiki" command line utility. See "pod2wiki --help" for details.
ACKNOWLEDGEMENTS
Submit a bugfix or test and your name will go here.
DISCLAIMER OF WARRANTY
Please refer to the DISCLAIMER OF WARRANTY in Pod::Simple::Wiki.
AUTHORS
John McNamara jmcnamara@cpan.org
COPYRIGHT
X MMIII-MMVIII, John McNamara.
All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.
perl v5.10.1 2009-08-26 Pod::Simple::Wiki::Usemod(3pm)