04-14-2010
Thanks tlarkin, will do. Much appreciation.
10 More Discussions You Might Find Interesting
1. OS X (Apple)
Help!! I loaded OS X Panther on my Mac G4 and found that many files previously saved as txt files were inadventently converted to Unix executable files. When I try to read these in Word, the Word filters cannot recognize or translate the file properly. Does anyone know how to translate these files?... (1 Reply)
Discussion started by: Steven Greenber
1 Replies
2. OS X (Apple)
I loaded OS X Panther on my Mac G4 and found that many files previously saved as Word or Word Perfect files were inadventently converted to Unix executable files. When I try to read these in Word, it cannot recognize or translate the file properly. Does anyone know how to translate these files? Is... (4 Replies)
Discussion started by: Steven Greenber
4 Replies
3. OS X (Apple)
:(
what is the best way of editing the various .plist files without adding third party files? Or is the easiest way is to add third party applications, which ones? please kept in mind that i am not a programmer.
mike (1 Reply)
Discussion started by: mehow
1 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I am very new to UNIX and I have been learning about writing scripts and making them executable. I created a script called myscript. It has three lines:
#! /bin/sh
# This is my first shell script
echo friendsjustfriends
Now I try to run it using the sh command and it works
Next I... (4 Replies)
Discussion started by: rohitx
4 Replies
5. UNIX for Dummies Questions & Answers
I have installed the Darwin Calendar Server on my Mac and got it working.
To start the server I open a Finder window on my mac and click the UNIX executable called RUN.
In order to start the server automatically on bootup I used LINGON to add a startup Daemon to call "RUN -d". When I reboot... (6 Replies)
Discussion started by: thylacine
6 Replies
6. UNIX for Dummies Questions & Answers
Hi there,
I'm trying to retrieve a value from a plist file, which I have done before with no problems, however this plist file looks a little different....
Normally it's like this;
<plist version="1.0">
<dict>
key>KeyName</key>
<string>blah</string>
I want the value of KeyName, so... (1 Reply)
Discussion started by: davewg
1 Replies
7. UNIX for Dummies Questions & Answers
How to list out the files which are not accessed for the last n days?
and
How to list out all the executable files in a directory?
can anyone help me on the above?
Thanks in advance. (3 Replies)
Discussion started by: venkatesht
3 Replies
8. Shell Programming and Scripting
Hi - How can I find out under sh whitch file is an unix executable file? Need it for an software inventory. Thanks in advance. Regards - Lazybaer (6 Replies)
Discussion started by: lazybaer
6 Replies
9. Shell Programming and Scripting
Hi,
I want to write an executable file in unix env to go to a particular path instead of always typing the long path cd /app/oracle/product/10.2.0/Db_1/scripts/prejib/sample.
I have tried with the below script in but not working . please help me
bash-3.00$ cat a.sh
#!/bin/sh ... (3 Replies)
Discussion started by: prejib
3 Replies
10. Shell Programming and Scripting
Hi,
I wondered if it was possible to parse a plist file like this
http://dl.dropbox.com/u/14586156/stuff/Bookmarks.plist
so it will afterwards look like this
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"... (0 Replies)
Discussion started by: pasc
0 Replies
LEARN ABOUT DEBIAN
parse::dmidecode::handle
Parse::DMIDecode::Handle(3pm) User Contributed Perl Documentation Parse::DMIDecode::Handle(3pm)
NAME
Parse::DMIDecode::Handle - SMBIOS Structure Handle Object Class
SYNOPSIS
use Parse::DMIDecode qw();
my $decoder = new Parse::DMIDecode;
$decoder->probe;
for my $handle ($decoder->get_handles) {
printf("Handle %s of type %s is %s bytes long (minus strings).
".
" > Contians the following keyword data entries:
",
$handle->handle,
$handle->dmitype,
$handle->bytes
);
for my $keyword ($handle->keywords) {
my $value = $handle->keyword($keyword);
printf("Keyword "%s" => "%s"
",
$keyword,
(ref($value) eq 'ARRAY' ?
join(', ',@{$value}) : ($value||''))
);
}
}
DESCRIPTION
METHODS
new
Create a new struture handle object. This is called by Parse::DMIDecode's parse() (and indirectly by probe()) methods.
raw
my $raw_data = $handle->raw;
Returns the raw data as generated by dmidecode that was parsed to create this handle object.
bytes
my $bytes = $handle->bytes;
address
my $address = $handle->address;
Returns the address handle of the structure.
handle
Alias for address.
dmitype
my $dmitype = $handle->dmitype;
type
Alias for dmitype.
description
my $description = $handle->description;
keywords
my @keywords = $handle->keywords;
Returns a list of keyword data pairs available for retreival from this handle object.
keyword
for my $keyword ($handle->keywords) {
printf("Keyword "%s" => "%s"
",
$keyword,
$handle->keyword($keyword)
);
}
parsed_structures
use Data::Dumper;
my $ref = $handle->parsed_structures;
print Dumper($ref);
Returns a copy of the parsed structures. This should be used with care as this is a cloned copy of the parsed data structures that the
Parse::DMIDecode::Handle object uses internally, and as such may change format in later releases without notice.
SEE ALSO
Parse::DMIDecode
VERSION
$Id: Handle.pm 976 2007-03-04 20:47:36Z nicolaw $
AUTHOR
Nicola Worthington <nicolaw@cpan.org>
<http://perlgirl.org.uk>
If you like this software, why not show your appreciation by sending the author something nice from her Amazon wishlist ?
<http://www.amazon.co.uk/gp/registry/1VZXC59ESWYK0?sort=priority>
COPYRIGHT
Copyright 2006 Nicola Worthington.
This software is licensed under The Apache Software License, Version 2.0.
<http://www.apache.org/licenses/LICENSE-2.0>
perl v5.10.1 2009-12-02 Parse::DMIDecode::Handle(3pm)