develooper Front page | perl.perl5.porters | Postings from October 2003

[perl #24132] perl problem in solaris

Thread Next
From:
perlbug-followup
Date:
October 6, 2003 23:01
Subject:
[perl #24132] perl problem in solaris
Message ID:
rt-24132-65723.3.47510059344998@rt.perl.org
# New Ticket Created by  kokidkoj@georgetown.edu 
# Please include the string:  [perl #24132]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24132 >



This is a bug report for perl from kokidkoj@georgetown.edu,
generated with the help of perlbug 1.33 running under perl v5.6.1.


-----------------------------------------------------------------
[Please enter your report here]

#!/opt/OV/bin/Perl/bin/perl




use strict;

my $file1 = "/var/opt/OV/ips.txt";
my $file2 = "/var/opt/OV/netout.txt";
my $ip;

open ( HOSTS, "$file1" ) or die ("Cannot open /var/opt/OV/ips.txt: $!");
open ( OUT, ">$file2"  ) or die ("Cannot open /var/opt/OV/netout.txt: $!");

foreach  $ip (<HOSTS>) {
	my $var1 = `/opt/OV/bin/netcheck $ip`;
	my @array1 = split ( /\s{2,20}/, $var1 );
	print (OUT "Ping results for $ip is: $array1[5]\n");
	print (OUT "SNMP Get results for $ip is: $array1[7]\n");
}

______________________________________________________

This is program and it will not run...

I believe it came from a HP box..



I believe it cam from a 


please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl v5.6.1:

Configured by steve at Wed Apr 25 02:36:44 EDT 2001.

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=solaris, osvers=2.8, archname=sun4-solaris
    uname='sunos solaris 5.8 generic sun4u sparc sunw,ultra-5_10 '
    config_args='-Dcc=gcc -de'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O',
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.3 20010315 (release)', gccosandvers='solaris2.8'
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib '
    libpth=/usr/local/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.6.1:
    /usr/local/lib/perl5/5.6.1/sun4-solaris
    /usr/local/lib/perl5/5.6.1
    /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris
    /usr/local/lib/perl5/site_perl/5.6.1
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl v5.6.1:
    HOME=/export/home/kokidkoj
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/sbin:/usr/bin
    PERL_BADLANG (unset)
    SHELL (unset)


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About