10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
i have the following code in which i am passing array tldn in awk using -v option & despite of that condition is not getting matched,can somebody suggest how to handle shell arrays in awk
tcount=(9875 9667)
awk -F"\t" -v ltldn="${tldn}" 'NR==FNR {POSTPAIDMDNS=$2"|"$3;next}
... (6 Replies)
Discussion started by: siramitsharma
6 Replies
2. Solaris
Booting problem on Sun 3500
Hi,
I have a Sun 3500 server on which i installed solaris 5.2 installed . i dont know why from the time i have built this server whenever i try to boot it, the server doesnot come back smooth.i got a message Sync file system than restart
some times showing ok... (2 Replies)
Discussion started by: najeer
2 Replies
3. Shell Programming and Scripting
Below is a test script I was trying to use so that I could understand why the logic was not working in a larger script. While accessing and printing array data inside the while loop, everything is fine. Outside the loop, i guess everything is null?? The for loop that is meant to cycle... (4 Replies)
Discussion started by: adlmostwanted
4 Replies
4. AIX
I have recently aquired the following machine:
IBM,9113-550
Up until yesterday we could connect a dumb terminal to serial port 1 and get console login. However the dumb terminal died. We are now using a laptop with a null modem cable attached to serial port 1. This works perfectly for all of... (1 Reply)
Discussion started by: rsw7724
1 Replies
5. Shell Programming and Scripting
hi all, its me again!!! i've requirement like this:
i want to create a file & an array with its name having the filename as its substring. here is the test script!!
#!/bin/bash
touch $1
declare -a $1_rec;
echo -n "$1_rec: "
read $1_rec;
echo $];
now see output:
this is when i enter... (7 Replies)
Discussion started by: tprayush
7 Replies
6. HP-UX
hi friends,
I am using hp unix HP-UX B.11.11 .. Generally i do the compression to maintain the space availability . To compress the files first i used the TAR to collect all the files. it has done fine. when i am using command ls in the folder which has TAR file , it shows the TAR... (2 Replies)
Discussion started by: rdhaprakasam
2 Replies
7. Solaris
Hi,
I am refered to see Infodoc 80854. but I am not able to access from sun.com. Is there any precedure to view these?. Please guide me.
Thanks in advance. (1 Reply)
Discussion started by: bpsunadm
1 Replies
8. Shell Programming and Scripting
I am unable to access the value set inside the loop from outside loop .
Thought of taking this to forum , I had seen other replies also , where a pipe takes the execution to another shell and mentioned thats the reason we do not get the variable outside loop . But I am getting an issue and I am... (1 Reply)
Discussion started by: Armaan_S
1 Replies
9. Solaris
Good morning,
I have a solaris 8 machine (Sunblade 1000) that is configured with NIS, I have checked everything I can think of to make sure everything is correctly configured which it appears it is but when I try to log into CDE it says it is unable to access my home area and it also does the... (1 Reply)
Discussion started by: Mr Pink
1 Replies
10. Solaris
Hi,
I have a Sun 3500 server on which i installed solaris 8 and have also installed veritas 4.0 on it. i dont know why from the time i have built this server whenever i try to boot it, the server doesnot come back smooth.... i have got to connect a laptop to the serial port of the server and... (3 Replies)
Discussion started by: ishila
3 Replies
Exacct::Object::Group(3PERL) Perl Library Functions Exacct::Object::Group(3PERL)
NAME
Exacct::Object::Group - exacct group manipulation
SYNOPSIS
use Sun::Solaris::Exacct::Object;
my $ea_grp = Sun::Solaris::Exacct::Object::Group->new(
& EXT_GROUP | &EXC_DEFAULT | &EXD_GROUP_PROC);
DESCRIPTION
This module is used for manipulating libexacct(3LIB) Group objects. A libexacct Group object is represented as an opaque reference blessed
into the Sun::Solaris::Exacct::Object::Group class, which is a subclass of the Sun::Solaris::Exacct::Object class. The Items within a Group
are stored inside a Perl array. A reference to the array can be accessed with the inherited value() method. The individual Items within a
Group can be manipulated with the normal Perl array syntax and operators. All data elements of the array must be derived from the
Sun::Solaris::Exacct::Object class. Group objects can also be nested inside each other simply by adding an existing Group as a data Item.
Constants
None.
Functions
None.
Class methods
Class methods include those inherited from the Sun::Solaris::Exacct::Object base class, plus the following:
new($catalog, @objects)
This method creates and returns a new Sun::Solaris::Exacct::Object::Group. The catalog tag can be either an integer or a
Sun::Solaris::Exacct::Catalog. The catalog tag should be a valid catalog tag for a Perl exacct Group object. The @objects parameter is
a list of Sun::Solaris::Exacct::Object to be stored inside the Group. A copy of all the passed Items is taken and any Group objects are
recursively copied. The contents of the returned Group object can be accessed with the array returned by the value method.
Object methods
as_hash()
This method returns the contents of the group as a hash reference. It uses the string value of each item's catalog ID as the hash entry
key and the scalar value returned by value() as the hash entry value. This form should be used if there are no duplicate catalog tags
in the group.
This method and its companion as_hashlist() are the fastest ways to access the contents of a Group.
as_hashlist()
This method returns the contents of the group as a hash reference. It uses the string value of each item's catalog id as the hash entry
key and an array of the scalar values returned by value() as the hash entry value for all the items that share a common key. This form
should be used if there might be duplicate catalog tags in the group.
This method and its companion as_hash() are the fastest ways to access the contents of a Group.
Exports
None.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWpl5u |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
Exacct(3PERL), Exacct::Catalog(3PERL), Exacct::File(3PERL), Exacct::Object(3PERL), Exacct::Object::Item(3PERL), libexacct(3LIB),
attributes(5)
SunOS 5.10 1 Dec 2002 Exacct::Object::Group(3PERL)