7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Team,
I would like to use a shell script that run each 15 minutes in order to recorder the number of process per user
I request your help in order to build an awk script under Solaris from the following command or similar:
ps -fea -o user | sort | uniq -c | sort -k 2
648 ... (3 Replies)
Discussion started by: csierra
3 Replies
2. What is on Your Mind?
Hello,
I have been working as Solaris/Linux Admin since past 8 years. I am looking options for my profile change, but there is some limitation. I worked as 24x7 support for admin, server support, high availability, etc. But been worked on developing side and scripting part.
When I search for Big... (2 Replies)
Discussion started by: nightup2222
2 Replies
3. Red Hat
Hi all,
i need to collect all system activities data(processes running, disk details, memory, etc), system logs and things related.
i heard of cfg2html but its not available for my CentOS distro(i may need to install separately but thats not what i wana do).
i can use sar for syatem... (1 Reply)
Discussion started by: ajayyadavmca
1 Replies
4. AIX
Hi All,
I have two mount points have the same data with little changes between them
/appabc1
/appabc2
Both of them have the same data, there is some little changes on the data between them
I want /appabc2 to has the same data of /appabc1 exactly including to those little changes... (6 Replies)
Discussion started by: Mr.AIX
6 Replies
5. UNIX for Advanced & Expert Users
Hi,
In order to have a sand box machine that I could use to test some system changes before going to production state, I'd like to duplicate a working system to a virtual one. Ideally, I'd like to manage to do it this way :
- Make a full system backup excluding the user file system (this... (7 Replies)
Discussion started by: pagaille
7 Replies
6. HP-UX
Hi all,
I have a server running HP-UX 11i V1 (11.11).
We had a problem with the system disk which cannot boot and the recovery with the CD failed too.
the only solution was to re-install the system on a new disk.
The problem now is to get access to the data which are on other disks, not... (2 Replies)
Discussion started by: aribault
2 Replies
7. Shell Programming and Scripting
I have created simple shell script
#!/bin/sh
echo `date`; echo "Start ....
find . -mtime +95 -print > /tmp/files.txt
for file in `cat /tmp/files.txt`
do
echo "copying file - $file"
/usr/local/bin/scp -p -P 2222 $file remote.hostname:/file/path
echo "copid file -... (3 Replies)
Discussion started by: ynilesh
3 Replies
ici::doc::pod3::sdrtable(3) ICI library functions ici::doc::pod3::sdrtable(3)
NAME
sdrtable - Simple Data Recorder table management functions
SYNOPSIS
#include "sdr.h"
Object sdr_table_create (Sdr sdr, int rowSize, int rowCount);
int sdr_table_user_data_set (Sdr sdr, Object table, Address userData);
Address sdr_table_user_data (Sdr sdr, Object table);
int sdr_table_dimensions (Sdr sdr, Object table, int *rowSize,
int *rowCount);
int sdr_table_stage (Sdr sdr, Object table);
Address sdr_table_row (Sdr sdr, Object table,
unsigned int rowNbr);
int sdr_table_destroy (Sdr sdr, Object table);
DESCRIPTION
The SDR table functions manage table objects in the SDR. An SDR table comprises N rows of M bytes each, plus optionally one word of user
data (which is nominally the address of some other object in the SDR's heap space). When a table is created, the number of rows in the
table and the length of each row are specified; they remain fixed for the life of the table. The table functions merely maintain
information about the table structure and its location in the SDR and calculate row addresses; other SDR functions such as sdr_read() and
sdr_write() are used to read and write the contents of the table's rows. In particular, the format of the rows of a table is left entirely
up to the user.
Object sdr_table_create(Sdr sdr, int rowSize, int rowCount)
Creates a "self-delimited table", comprising rowCount rows of rowSize bytes each, in the heap space of the indicated SDR. Note that
the content of the table, a two-dimensional array, is a single SDR heap space object of size (rowCount x rowSize). Returns the address
of the new table on success, zero on any error.
void sdr_table_user_data_set(Sdr sdr, Object table, Address userData)
Sets the "user data" word of table to userData. Note that userData is nominally an Address but can in fact be any value that occupies
a single word. It is typically used to point to an SDR object that somehow characterizes the table as a whole, such as an SDR string
containing a name.
Address sdr_table_user_data(Sdr sdr, Object table)
Returns the value of the "user data" word of table, or zero on any error.
void sdr_table_dimensions(Sdr sdr, Object table, int *rowSize, int *rowCount)
Reports on the row size and row count of the indicated table, as specified when the table was created.
void sdr_table_stage(Sdr sdr, Object table)
Stages table so that the array it encapsulates may be updated; see the discussion of sdr_stage() in sdr(3). The effect of this
function is the same as:
sdr_stage(sdr, NULL, (Object) sdr_table_row(sdr, table, 0), 0)
Address sdr_table_row(Sdr sdr, Object table, unsigned int rowNbr)
Returns the address of the rowNbrth row of table, for use in reading or writing the content of this row; returns -1 on any error.
void sdr_table_destroy(Sdr sdr, Object table)
Destroys table, releasing all bytes of all rows and destroying the table structure itself. DO NOT use sdr_free() to destroy a table,
as this would leave the table's content allocated yet unreferenced.
SEE ALSO
sdr(3), sdrlist(3), sdrstring(3)
perl v5.14.2 2012-05-25 ici::doc::pod3::sdrtable(3)