Ppm conversion to curl on a module install


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Ppm conversion to curl on a module install
# 1  
Old 02-10-2016
Ppm conversion to curl on a module install

Hello,

I have a shell script named update.sh that has this:

Code:
@echo off
set ip=%1
ppm install --force https://%ip%/api/dist/ppm/richard.ppd

I used to run it like this when I used activestate perl

./update.sh 100.100.100.100

it would connect to this IP inside my network and install it.

Now I switched to cpan using perl that came with my macbook and of course the script won't run.

how can I use the same script using cpan or curl to install it?

Thanks in advance
# 2  
Old 02-10-2016
So am I correct in interpreting you requirement as you wish to have a local private CPAN mirror, and additionally would like to inject your own modules into the local repository?

If so this Private CPAN Distributions | Dr Dobb's may give you some ideas.
# 3  
Old 02-10-2016
Hi, yes you are correct. So how would I command line it? or modify my shell script? is there a way to run this? The mod I want to install is on a device like I mentioned above.

would I run it as

curl -O -k https://100.100.100.100/api/dist/ppm/richard.ppd

I am new to this method of curl or cpan.

Last edited by richsark; 02-10-2016 at 10:28 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Solaris install php as an apache module

Hi, I need to install php 5.5.30 as an apache (2.4.17) module on Solaris 10. Please any help is wellcome. Some aditional info: /usr/sfw/bin/gcc -v Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs bash-3.2# g++ -v Reading specs from... (1 Reply)
Discussion started by: lbslbs
1 Replies

2. SCO

How install curl in openserver 5.0.7?

Hello, I wanted to know how to install the service "CURL" for UNIX OpenServer 5.0.7 I need to connect a web service even government to generate an electronic invoice. Sorry for my English, the forum is excellent but my English is not. I hope the comments thank you very much:b::b::b::b::b::b: (2 Replies)
Discussion started by: fersys
2 Replies

3. Shell Programming and Scripting

Unable to install module using cpan

Hi, I am unable to install module using cpan. It says 407 Proxy Authentication Required I did setup proxy server and given username and password in .bashrc file and apt.conf file. export http_proxy=http://username:password@proxyserver:portno/ However, still unable to install... (1 Reply)
Discussion started by: Anjan1
1 Replies

4. Solaris

perl module install issue

Hi, I've been trying to install the perl module DateTime-0.72 onto Solaris 10 server. # uname -a SunOS 5.10 Generic_142910-17 i86pc i386 i86pc but I'm getting the following error: /export/home/perl-modules/DateTime-0.72/> perl Build.PL Can't locate Module/Build.pm in @INC (@INC... (4 Replies)
Discussion started by: keatingb
4 Replies

5. Shell Programming and Scripting

Can't locate inc/Module/Install.pm in @INC

Hi, I'm trying to install "Date-FromToday" module on my solaris box as below. #perl Makefile.pl (i got the below error) Can't locate inc/Module/Install.pm in @INC (@INC contains: /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int... (3 Replies)
Discussion started by: admin@2010
3 Replies

6. Solaris

Trying to install perl module

Here's the deal: I'm trying to install perl's DBI Module in my Solaris 11 express ( ALSO TRYING IN SOLARIS 10 ) but I'm getting these errors/warnings when using the respective commands perl Makefile.PL Warning: prerequisite ExtUtils::MakeMaker 6.48 not found. We have 6.42. Warning:... (3 Replies)
Discussion started by: alvaradogunner
3 Replies

7. OS X (Apple)

Unable to install Perl module via CPAN

Hi, I am trying to install Unicode::String from the cpan shell, and here is what I get: Checking if your kit is complete... Looks good Writing Makefile for Unicode::String cp String.pm blib/lib/Unicode/String.pm cp lib/Unicode/CharName.pm blib/lib/Unicode/CharName.pm... (3 Replies)
Discussion started by: psychomachine
3 Replies

8. Shell Programming and Scripting

[Perl] How to install with CPAN specified version of module

Hello all, i am searching how to install a module but the question is : howto specify CPAN to install a determined version of the module ? In my case i want to install DBD:Oracle1.14 and not version 1.23 proposed ! Any idea welcome ! :rolleyes: Thanks ! (1 Reply)
Discussion started by: sun_cracker
1 Replies

9. Solaris

Install Perl Module

Hi Every one, I am suing solaris 5.10. i want install perl modules, how insall cn any body help me to install perl Module.. Thank you for your Help Thanks, Hari.A. (1 Reply)
Discussion started by: hari.jnvc90
1 Replies

10. Shell Programming and Scripting

PERL DBI module install

We ran into an issue trying to install DBI and DB2 modules for perl for AIX from the link http://www-306.ibm.com/software/data/db2/perl/ We tried to install the DBI module using bash# perl -MCPAN -e 'install DBI' command. However we ended up with the following error. Stop. ... (3 Replies)
Discussion started by: jerardfjay
3 Replies
Login or Register to Ask a Question