08-17-2010
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am using the shell script file to send mail by "mailx". I do this by cron job, there is no error found. But it is fail, any suggest to me?
How can I resend it automatically? Is there any resend logic by using the mailx? (3 Replies)
Discussion started by: adela
3 Replies
2. Shell Programming and Scripting
I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies
3. Shell Programming and Scripting
I've a lot of file with an hyphen on filename, so I use rename for remove him ad substitute with an underscore but it fails
$ rename 's/\-/\_/' *
Unknown option: _
Unknown option: i
Unknown option: r
Unknown option: e
Unknown option: e
Unknown option: _
Unknown option: g
Unknown... (12 Replies)
Discussion started by: cv313x
12 Replies
4. Shell Programming and Scripting
Hi
Am having 2 files.
I have one data file.
before inserting in to the table am taking cout of the data file and store as data 1.
After insert in to the table and am taking the count from the table and store as data2.
If i try to compare those values
If
then
echo "data match"... (5 Replies)
Discussion started by: bobprabhu
5 Replies
5. HP-UX
Hi,
when i try to add new disk, it's an XP disk from SAN (lun) to the volume group, it fails because "TOO MANY LINKS"
:/etc/cmcluster/icastst$ vgextend /dev/vgicastst /dev/disk/disk684
Current path "/dev/dsk/c51t8d3" is an alternate link, skip.
Current path "/dev/dsk/c51t8d4" is an... (2 Replies)
Discussion started by: lamoul
2 Replies
6. HP-UX
I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email.
original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies
7. Emergency UNIX and Linux Support
Hi! We have two HP-UX 11.23. I created VG on host A, exported and imported it on host B, but when I try to mount any LV I get "unrecognized vxfs version" version error. Could anyone please suggest something I can do in this situation? I tried to import VG back to host A and I successfully mounted... (3 Replies)
Discussion started by: Sapfeer
3 Replies
8. HP-UX
HPUX running in D-Class (L1000), pretty old HPUX version - hpux 11.00
Attempt 1 -- To boot from normal (primary)
Unable to boot - system complains failure
SYSTEM ALERT System Name : uninitialized DATE : 10/22/2011 Time : 03/41:12 Alert Level 15 = Fatal hardware or configuration... (12 Replies)
Discussion started by: ckwan
12 Replies
9. Linux
Hi,
I try to telnet to server:
# telnet xx.xxx.1.72 1521
Trying xx.xxx.1.72...
telnet: connect to address xx.xxx.1.72: Connection refused
telnet: Unable to connect to remote host: Connection refused
iptables is off:
# service iptables status
Firewall is stopped.
#
And I have edit... (4 Replies)
Discussion started by: mehrdad68
4 Replies
10. Shell Programming and Scripting
Hi Team,
I have a file named as follows: aaa.tar.gz
Now I need to verify if the untar fails, then the script has to send a mail. In order to check this condition, I need a tar.gz file which is unable to untar it. Can anyone help me to create a file which I will be able to unzip successfully... (2 Replies)
Discussion started by: kmanivan82
2 Replies
LEARN ABOUT REDHAT
xml::dom::namednodemap
NAMEDNODEMAP(1) User Contributed Perl Documentation NAMEDNODEMAP(1)
NAME
XML::DOM::NamedNodeMap - A hash table interface for XML::DOM
DESCRIPTION
Objects implementing the NamedNodeMap interface are used to represent collections of nodes that can be accessed by name. Note that
NamedNodeMap does not inherit from NodeList; NamedNodeMaps are not maintained in any particular order. Objects contained in an object
implementing NamedNodeMap may also be accessed by an ordinal index, but this is simply to allow convenient enumeration of the contents of a
NamedNodeMap, and does not imply that the DOM specifies an order to these Nodes.
Note that in this implementation, the objects added to a NamedNodeMap are kept in order.
METHODS
getNamedItem (name)
Retrieves a node specified by name.
Return Value: A Node (of any type) with the specified name, or undef if the specified name did not identify any node in the map.
setNamedItem (arg)
Adds a node using its nodeName attribute.
As the nodeName attribute is used to derive the name which the node must be stored under, multiple nodes of certain types (those that
have a "special" string value) cannot be stored as the names would clash. This is seen as preferable to allowing nodes to be aliased.
Parameters:
arg A node to store in a named node map.
The node will later be accessible using the value of the nodeName attribute of the node. If a node with that name is already present in
the map, it is replaced by the new one.
Return Value: If the new Node replaces an existing node with the same name the previously existing Node is returned, otherwise undef is
returned.
DOMExceptions:
o WRONG_DOCUMENT_ERR
Raised if arg was created from a different document than the one that created the NamedNodeMap.
o NO_MODIFICATION_ALLOWED_ERR
Raised if this NamedNodeMap is readonly.
o INUSE_ATTRIBUTE_ERR
Raised if arg is an Attr that is already an attribute of another Element object. The DOM user must explicitly clone Attr nodes to
re-use them in other elements.
removeNamedItem (name)
Removes a node specified by name. If the removed node is an Attr with a default value it is immediately replaced.
Return Value: The node removed from the map or undef if no node with such a name exists.
DOMException:
o NOT_FOUND_ERR
Raised if there is no node named name in the map.
item (index)
Returns the indexth item in the map. If index is greater than or equal to the number of nodes in the map, this returns undef.
Return Value: The node at the indexth position in the NamedNodeMap, or undef if that is not a valid index.
getLength
Returns the number of nodes in the map. The range of valid child node indices is 0 to length-1 inclusive.
Additional methods not in the DOM Spec
getValues
Returns a NodeList with the nodes contained in the NamedNodeMap. The NodeList is "live", in that it reflects changes made to the
NamedNodeMap.
When this method is called in a list context, it returns a regular perl list containing the values. Note that this list is not "live".
E.g.
@list = $map->getValues; # returns a perl list
$nodelist = $map->getValues; # returns a NodeList (object ref.)
for my $val ($map->getValues) # iterate over the values
getChildIndex (node)
Returns the index of the node in the NodeList as returned by getValues, or -1 if the node is not in the NamedNodeMap.
dispose
Removes all circular references in this NamedNodeMap and its descendants so the objects can be claimed for garbage collection. The
objects should not be used afterwards.
perl v5.8.0 2000-01-31 NAMEDNODEMAP(1)