I have an existing C module that already built libudf.so
Now I have modify this module to call a third party software function (which is new.so), and re build to target to libudf.so
I compiled that includes all header files of third party software.
Linking to new.so is also good,
But when... (0 Replies)
Hi. Thanks for any help with this. I'm not new to programming but I am new to shell programming. I need a script that will
1. execute 'df -k' and return the volume names with specific text
2. surround each line of the above results in opening and closing xml tags
3. insert the results of step... (5 Replies)
I want to look into a folder to see if there are any folders within it. If there are, I need to check inside each folder to see if it contains a .pdf file
So
If /myserver/myfolder/
contains a folder AND that folder conatins a .pdf file
do X
Else
do Z
I may have multiple folders and... (4 Replies)
Hi all,
I need to insert new text and change existing text in a file. For that I used the below line in the command line and got the expected output.
sed '$a\
hi...
' shell > shell1
But I face problem when using the same in script. It is throwing the error as,
sed: command garbled:... (4 Replies)
Hi ,
I need some inputs on how to open a file (file.txt) and parse the text example aaa of the file and bbb of the file and add the text zzzz once i parse (aaa and bbb) and followed by the remaining of the text as it is in the file using perl programming.
Thanks in advance (3 Replies)
I have a file with 50,000 records in it, i have a requirement to use the same 50,000 records and add them 4 times to the same file to make a total of 200,000 records. I was wondering how to do this using ksh. Any help is greatly appreciated. (2 Replies)
Evening all !
I would like to ask your expertise on how to accomplish the following ;
I have 2 lists, and would like each line from list2 to be appended to each line in list1, resulting in list3 ;
List1;
alpha
beta
charlie
List2;
one
two
three (4 Replies)
I have a file which has lines that end with a plus (+) sign. I would like to get the next line appended to the one with the plus. For example
bla bla bla bla bla +
blip blip blip
would become
bla bla bla bla bla blip blip blip
However not all lines end with a plus sign . I would... (2 Replies)
wracct(1M)wracct(1M)NAME
wracct - write extended accounting records for active processes and tasks
SYNOPSIS
/usr/sbin/wracct -i id_list [-t record_type] {process | task}
The wracct utility allows the administrator to invoke the extended accounting system, if active, to write intermediate records representing
the resource usage of a selected set of processes or tasks. For tasks, a record_type option is also supported, allowing the administrator
to request the writing of:
o an interval record, which reflects task usage since a previous interval record (or since task creation if there is no interval
record), or
o a partial record, which reflects usage since task creation.
The following options are supported:
-i id_list Select the IDs of the tasks or processes to write records for. Specify id_list as a comma- or space-separated list of IDs,
presented as a single argument. For some shells, this requires appropriate quoting of the argument.
-t record_type Select type of record to write for the selected task or process. For tasks, record_type can be partial or interval. partial
is the default type, and the only type available for process records.
The following operands are supported:
process Treat the given ID as a process ID for the purposes of constructing and writing an extended accounting record.
task Treat the given ID as a task ID for the purposes of constructing and writing an extended accounting record.
Example 1: Writing a Partial Record
Write a partial record for all active sendmail processes.
# /usr/sbin/wracct -i "`pgrep sendmail`" process
Example 2: Writing an Interval Record
Write an interval record for the task with ID 182.
# /usr/sbin/wracct -t interval -i 182 task
The following exit values are returned:
0 Successful completion.
1 An error occurred.
2 Invalid command line options were specified.
3 Pertinent components of extended accounting facility are not active.
/var/adm/exacct/task
/var/adm/exacct/proc Extended accounting data files.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
acctadm(1M), attributes(5)
13 July 2005 wracct(1M)