OK, being at the office and sitting in front of an xterm pointing at my NIM server does wonders for that old brain of mine ...
Here it is: you can get a list of all NIM objects of a certain type. In this case you are interested in the resources of type "mksysb". Do yourself a favour and, when you take the mksysb with NIM means, give it a proper name. In my case this means: hostname plus a suffix. Issue:
If you work your NIM-server like me you perhaps have some installation-images as mksysbs which you use to instll new systems (see above, the aix71_04_02) and the images of the various installed LPARs you take regularly (the others in the list above). Now filter out all the installation images so that only the systems are left and cycle through them, using the -l command line option of lsnim to see the details:
For instance, a (quick and dirty) code fragment that lists the systems and the creation date of their respective mksysbs, supposing your naming convention is like mine, would be (remove the comments to actually run it):
I am aware that this is only the sketch of a solution, but it should be fairly straightforward to implement that into a script.
We use a UNIX-based system (Lawson) at work and I was given this command to request a data extract from the db admin. The only thing I really understand is the last line as it appears to be joining the files created from the first three lines into one. Is there anyone who can help me breakdown the... (4 Replies)
# sub: find block (in cols), return line-numbers (begin-end) or 0 if notfound
sub findb{
my ($exp1,$col1,$exp2,$col2)= @_; # $exp = expression to find, $col - column to search in
my $cnt=0;
my ($val1,$val2);
my ($beg,$end);
for($cnt=1;$cnt<=65536;$cnt++){
$val1 =... (3 Replies)
i am analyzing a query written by another developer ,need to understand part of script
am looking at a code ..and it converts comma files to pipe delimited and also takes away quotes from any columns,
source field format: 2510,"Debbie",NewYork
changes to
target: 2510|Debbie|NewYork
... (1 Reply)
Can someone explain what is happening line by line in this script, particularly after the do statement. The script works, it renames all the files in my directory that has a date in the file name. But I would like to know more about it.
#!/bin/bash
newdate=12-10-1995
for file in *--*
do
... (6 Replies)
i am trying to understand this script example. the text does not explain it. can someone tell me briefly what each of the functions do. any help will be appreciated.
#!/bin/bash
killtree() {
local _pid=$1
local _sig=${2-TERM}
for _child in $(ps -o pid --no-headers --ppid... (1 Reply)
Hi Guys,
I am new to scripting , I am trying to rebuild a script based on an old script. Can someone help me figure out what the script is doing? This is only a part of the script.
I am looking to interpret these two points in the scripts:-
1)
test=`echo $?`
while
I do not... (3 Replies)
Hi,
New to this forum, as well as to unix scripting..need help to understand below script ...
sendNotice_sp()
{
ATTACH=${LNXLOG:-}
if ; then
if ; then
mail -s "$ERR_MSG" $ERR_EMAIL_TO < $ATTACH
fi
else
mail -s "$ERR_MSG" $ERR_EMAIL_TO < /dev/null
fi
}
afaik this is sm kind of... (6 Replies)
Below script is called as Reducer, I am not sure how it work, can some expert explain me what this script does as i am a beginner.
inputfile:
hi hi how are are you
code:
#!/bin/bash
lastkey=""; -- what does this mean, because i saw in debug mode it is taking value as hi
count=0;... (13 Replies)
Hello,
How come the following script adds each numeric value to a total sum ?
x=$1
func()
{
for i in $1 $2 $3; do
let x= $x+$i
done }
func "8 8 8" 9 9
echo $x
A.How the program sums the string "8 8 8" if it`s only the first field value ($1)?
B.If we define x to be $1... (3 Replies)
Discussion started by: uniran
3 Replies
LEARN ABOUT SUSE
appres
APPRES(1) General Commands Manual APPRES(1)NAME
appres - list X application resource database
SYNOPSIS
appres [class [instance]] [-1] [toolkitoptions]
DESCRIPTION
The appres program prints the resources seen by an application (or subhierarchy of an application) with the specified class and instance
names. It can be used to determine which resources a particular program will load. For example,
% appres XTerm
will list the resources that any xterm program will load. If no application class is specified, the class -AppResTest- is used.
To match a particular instance name, specify an instance name explicitly after the class name, or use the normal Xt toolkit option. For
example,
% appres XTerm myxterm
or
% appres XTerm -name myxterm
To list resources that match a subhierarchy of an application, specify hierarchical class and instance names. The number of class and
instance components must be equal, and the instance name should not be specified with a toolkit option. For example,
% appres Xman.TopLevelShell.Form xman.topBox.form
will list the resources of widgets of xman topBox hierarchy. To list just the resources matching a specific level in the hierarchy, use
the -1 option. For example,
% appres XTerm.VT100 xterm.vt100 -1
will list the resources matching the xterm vt100 widget.
SEE ALSO X(7), xrdb(1), listres(1)AUTHOR
Jim Fulton, MIT X Consortium
X Version 11 appres 1.0.1 APPRES(1)