[HPADM] Help with Perl

From: Binkley Robert - rbinkl (Robert.Binkley_at_acxiom.com)
Date: 05/20/03

  • Next message: david fox: "[HPADM] Find core files sizes"
    To: "Hpux-Admin (E-mail)" <hpux-admin@dutchworks.nl>
    Date: Tue, 20 May 2003 10:13:56 -0500
    
    

    Hello admins

      I am sorry for posting this on your site.
      But I have no where else to turn..
      Does any one know a way to install perl dependency , without using cpan

    I am trying to write so code to do so, but the syntax for if dependency is
    needed , go an get module needed.

    Please help..

    ##############start of code#########################
     #!/usr/bin/perl

            opendir( DIR, "/u02/perl/module" ) or die "Unable to open directory:
    $!\n";
            @fileList = grep { /(\.gz|\.tgz)$/ } readdir( DIR );
            closedir( DIR );

            chdir( "/u02/perl/module" );

            foreach $file ( @fileList ) {
            print "Uncompressing $file\n";
            system("gunzip $file");
        }

    # now you may need to check for errors and/or warnings out of the
    processing.

            foreach $file ( @fileList ) {
            $file =~ s/\.gz//; # $file will still have .gz extension so we have
    ro remove it

            eval { system("tar xvf $file") };

            if ( $@ ) {
                    print "Error untarring $file: $@\n";
                    next;
            }

            $file =~ s/\.tar//; # remove '.tar' from $file variable

            chdir ("/u02/perl/module/$file");

            system("perl Makefile.PL");
            system("make");
            system("make install");

            chdir("/u02/perl/modules");
    }

    **********************************************************************
    The information contained in this communication is
    confidential, is intended only for the use of the recipient
    named above, and may be legally privileged.
    If the reader of this message is not the intended
    recipient, you are hereby notified that any dissemination,
    distribution, or copying of this communication is strictly
    prohibited.
    If you have received this communication in error,
    please re-send this communication to the sender and
    delete the original message or any copy of it from your
    computer system. Thank You.

    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: david fox: "[HPADM] Find core files sizes"

    Relevant Pages

    • [HPADM] RE: Security Tracking
      ... I have been given a task, on monitoring one of out credit customers ... The information contained in this communication is ... is intended only for the use of the recipient ... delete the original message or any copy of it from your ...
      (HP-UX-Admin)
    • Resize root volume with Solaris Volume Manager
      ... I was able to successfully resize ... The information contained in this communication is ... is intended only for the use of the recipient ... delete the original message or any copy of it from your ...
      (SunManagers)
    • COM Help
      ... some searching and reading on google I have run ... The information contained in this communication is ... is intended only for the use of the recipient ... delete the original message or any copy of it from your ...
      (comp.lang.python)
    • Re: Help renaming devices
      ... of my TSM server for library sharing, i.e rmt1 on the client is rmt4 on the ... The information contained in this communication is ... is intended only for the use of the recipient ... delete the original message or any copy of it from your ...
      (AIX-L)
    • Re: Help renaming devices
      ... of my TSM server for library sharing, i.e rmt1 on the client is rmt4 on the ... The information contained in this communication is ... is intended only for the use of the recipient ... delete the original message or any copy of it from your ...
      (AIX-L)