02-09-2011
lsattr -El sys0 | grep model
Will give you the model # regardless if it is a power machine, or a blade server.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi :)
I just wanted to ask a few basic questions really. I'm telnetting to a remote host and I've finally found out that I'm using a csh shell.
My questions are:
1. Is the somename@something, the user group logged in?
2. How do I change user?
I'm really lost so I hope someone can help... (7 Replies)
Discussion started by: hellz
7 Replies
2. UNIX for Dummies Questions & Answers
Even though I have been logging in to a UNIX shell at school to complete school projects and write programs, but I had never really worked in UNIX environment. But a couple of weeks back I got hooked on to Solaris 9OE, read a book, a tutorial, a document provided on the Sun Microsystems website,... (1 Reply)
Discussion started by: init-5
1 Replies
3. Linux
RH 7.2
I have 2 unrelated questions -
1.) I have been able to configure and run ntp but cannot figure out how to start the service upon reboot. I have read the man pages for ntsysv - this is a manual action, but I want to drop a tarball of config files on a new installation and cannot... (1 Reply)
Discussion started by: jalburger
1 Replies
4. Shell Programming and Scripting
I am relatively new to both KSH and Unix scripting, and I would like some help getting my script up and running. I would like to have the script attempt various commands (tar, copy, gzip etc) and then write the results (error msg or success msg) to a temp file. I would then like an email sent to... (2 Replies)
Discussion started by: mharley
2 Replies
5. Linux
I have been an apple customer for years now, and am not satisfied with the direction that they are going. So I just ordered my first PC notebook the other day. I have no desire to use windows, however with microsoft's hold on the market, I feel that I may have a hard time doing this. I want to... (2 Replies)
Discussion started by: Brycemb16
2 Replies
6. UNIX for Dummies Questions & Answers
Hi Unix gurus,
I know these are some easy questions.
But i just want to be sure about them.
Hope someone can help explain the following please?
1) if ]
- What does the "-r" means?
2) isql -U $DBUSER -D $DBNAME -S $DSQUERY -w 1000 -s";" << testfile > $FILE
- What does the -s";" mean and... (1 Reply)
Discussion started by: gholdbhurg
1 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I want to learn LISP, and I have a GNU/Linux OS. I first sought a LISP compiler/interpreter and was told that GNU Emacs has a LISP mode. But I couldn't get into LISP mode, nor I don't know how to use it when I get into LISP mode.
How can I run LISP code under GNU Emacs?
And if... (1 Reply)
Discussion started by: rayne
1 Replies
8. Solaris
Hello everyone, I am brand spanking new to both Solaris and Unix. I thought I would give it a go after buying a SB2500 off ebay for a few hundred dollars.
I am having some issues that I am not sure how to correct, and I am wondering if I can get a few pointers?
The first one is that my system... (2 Replies)
Discussion started by: GeekMasterFlash
2 Replies
9. Shell Programming and Scripting
Hi,
So I started to learn perl a few days ago, and I have some problems...
One of my problems...
#!C:\Perl64\bin\perl.exe -w
use LWP::Simple;
print "Content-Type: Text/Plain\n\n";
sub pagelinks {
return @all = get($_) =~ /href\s*=\s*"?(+)/gis;
}
@a =... (5 Replies)
Discussion started by: byte1918
5 Replies
LEARN ABOUT DEBIAN
ace::model
Ace::Model(3pm) User Contributed Perl Documentation Ace::Model(3pm)
NAME
Ace::Model - Get information about AceDB models
SYNOPSIS
use Ace;
my $db = Ace->connect(-path=>'/usr/local/acedb/elegans');
my $model = $db->model('Author');
print $model;
$name = $model->name;
@tags = $model->tags;
print "Paper is a valid tag" if $model->valid_tag('Paper');
DESCRIPTION
This class is provided for access to AceDB class models. It provides the model in human-readable form, and does some limited but useful
parsing on your behalf.
Ace::Model objects are obtained either by calling an Ace database handle's model() method to retrieve the model of a named class, or by
calling an Ace::Object's model() method to retrieve the object's particular model.
METHODS
new()
$model = Ace::Model->new($model_data);
This is a constructor intended only for use by Ace and Ace::Object classes. It constructs a new Ace::Model object from the raw string data
in models.wrm.
name()
$name = $model->name;
This returns the class name for the model.
tags()
@tags = $model->tags;
This returns a list of all the valid tags in the model.
valid_tag()
$boolean = $model->valid_tag($tag);
This returns true if the given tag is part of the model.
path()
@path = $model->path($tag)
Returns the path to the indicated tag, returning a list of intermediate tags. For example, in the C elegans ?Locus model, the path for
'Compelementation_data" will return the list ('Type','Gene').
asString()
print $model->asString;
asString() returns the human-readable representation of the model with comments stripped out. Internally this method is called to
automatically convert the model into a string when appropriate. You need only to start performing string operations on the model object in
order to convert it into a string automatically:
print "Paper is unique" if $model=~/Paper ?Paper UNIQUE/;
SEE ALSO
Ace
AUTHOR
Lincoln Stein <lstein@w3.org> with extensive help from Jean Thierry-Mieg <mieg@kaa.crbm.cnrs-mop.fr>
Copyright (c) 1997-1998, Lincoln D. Stein
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2003-06-01 Ace::Model(3pm)