How do you extract the information from a library?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How do you extract the information from a library?
# 1  
Old 09-11-2002
Question How do you extract the information from a library?

hi all, i am quite new with Perl (just 1 week of experience) and i am suppose to understand the usage of library, which i can't, anyway...
i came across this library...i think from the linux redhat redhat.linux.lib.pl, there are a couple of functions there that can be used to retrieve information for networking purpose...ok here are my questions
1. how do i retrieve those information that i need from those libraries' functions?
2. how to retrieve array values from the library?
(the commands i tried to use are
use redhat.linux.lib.pl
for $i(1..100)
{@test = active_interfaces($i);
results[$i] = [@test];})
active_interfaces is a function inside the library, and later i printed the results but this is what i got
HASH(0x810f058)
HASH(0x810f0e8)
which i suspect is the address of the values that i am suppose to obtain...please help...thanx
# 2  
Old 09-12-2002
Is this for a school project / homework?
# 3  
Old 09-12-2002
Computer

hm...it is a project...given by my lecturer...i couldn't understand it...so i hope to get some help with it Smilie
# 4  
Old 09-12-2002
hm...i have managed to solve this problem by myself...it is just an error in retrieving those information...anyway..thanx
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Extract information from file

In a particular directory, there can be 1000 files like below. filename is job901.ksh #!/bin/ksh cront -x << EOJ submit file=$PRODPATH/scripts/genReport.sh maxdelay=30 &node=xnode01 tname=job901 &pfile1=/prod/mldata/data/test1.dat ... (17 Replies)
Discussion started by: vedanta
17 Replies

2. Shell Programming and Scripting

Extract information from file

Gents, If is possible please help. I have a big file (example attached) which contends exactly same value in column, but from column 2 to 6 these values are diff. I will like to compile for all records all columns like the example attached in .csv format (output.rar ).. The last column in the... (11 Replies)
Discussion started by: jiam912
11 Replies

3. HP-UX

How can I get information about a library?

I'm a developer supporting a system that runs on HP-UX B.11.11 and I come across makefiles that link in various libraries such as libCsup_v2, librwtool_v2. I'd like to know what these libraries are, what they are for, which APIs they support etc. Is there a way of finding out other than... (1 Reply)
Discussion started by: rrgmitchell
1 Replies

4. Shell Programming and Scripting

Help with shell script to extract certain information

Hi, I have a file which I need to programmatically split into two files. All the information in the file before pattern "STOP HERE" is to be stripped and output into one file while everything after "STOP HERE" is to be output into a separate file. I would appreciate help on how to do... (8 Replies)
Discussion started by: PTL
8 Replies

5. Shell Programming and Scripting

How to extract specific information?

hi, i have a file A like this: ******************* No 2823 ******************** contig15205- G383C4U02H4G80+ is in contig15205- G383C4U02HGLXM- is in contig15205- G383C4U01C3HIZ+ is in contig15205- ... (3 Replies)
Discussion started by: the_simpsons
3 Replies

6. Shell Programming and Scripting

How to extract information from a file?

Hi, i have a file like this: <Iteration> <Iteration_iter-num>3</Iteration_iter-num> <Iteration_query-ID>lcl|3_0</Iteration_query-ID> <Iteration_query-def>G383C4U01EQA0A length=197</Iteration_query-def> <Iteration_query-len>197</Iteration_query-len> ... (9 Replies)
Discussion started by: the_simpsons
9 Replies

7. Shell Programming and Scripting

Using txr to extract information from output

am using txr command (txr 1097) on a process that generates the following output. Im trying to extract the 13th field from the highlighted string. it is delimited by '?'. The 13th field corresponds to the '0' (in bold). can you let me know how I can extract the 13 th field please? ... (1 Reply)
Discussion started by: pazman
1 Replies

8. UNIX for Advanced & Expert Users

using txr to extract information from output

am using txr command (txr 1097) on a process that generates the following output. Im trying to extract the 13th field from the highlighted string. it is delimited by '?'. The 13th field corresponds to the '0' (in bold). can you let me know how I can extract the 13 th field please? ... (1 Reply)
Discussion started by: pazman
1 Replies

9. Shell Programming and Scripting

AWK to extract information

Hi all, I am working on a shell script to extract information from a file that has output from Oracle sqlplus. The problem is that the output of a single line is spread across multiple lines and i do not know as how to extract the particular filed at ones,which spans multiple lines.... (2 Replies)
Discussion started by: harris2107
2 Replies
Login or Register to Ask a Question