08-13-2010
You might also want to investigate sar, available on most Unix implementations (part of the sysstat package in most GNU/Linux distros), which can do per-process accounting with the sadf command.
9 More Discussions You Might Find Interesting
1. Programming
Now I have two wave file(*.wav) at Tru64 Unix machine.
I want to make a new wave file including the two wave file.
how I should finish this programmer.
If you know, can you give me the format of the wave file(*.wav)
and Sun au file(*.au).
Thank you. (1 Reply)
Discussion started by: livic
1 Replies
2. Shell Programming and Scripting
I've installed unixODBC and I would like to connect to a MS SQL (2005) database from a bash script. Can you post a code example?
Thank you! :D
J. (0 Replies)
Discussion started by: ph0enix
0 Replies
3. UNIX for Dummies Questions & Answers
Hi Guys,
I would like with this script
"DATA=`ora123 su -c 'echo "SET HEADING OFF;\n SET FEED OFF;\n select USER NAME, ACCOUNT_STATUS from dba_users;\n exit" | sqlplus / as sysdba -s /' `
echo $DATA >> $DAT"
make a sql query, but the statement
"select USER NAME, ACCOUNT_STATUS from... (6 Replies)
Discussion started by: ixibits
6 Replies
4. UNIX for Dummies Questions & Answers
I have written a bash script...now i need to call the script from php page.
Can you give me an example to demonstrate how it is done?:( (1 Reply)
Discussion started by: xerox
1 Replies
5. Shell Programming and Scripting
hi
Can anybody help me with converting such structure into csv file for windows :
BAT_ID ID_num CVS_LINE A_SEG SKILL_TO A_CUSTOMER_TYPE
--------- ---------- --------------------------------- ---------- ------------------ -----------
14-MAY-11 777752 ... (4 Replies)
Discussion started by: kvok
4 Replies
6. Programming
Hi Guys,
I was hoping someone has integrated Eclipse with jconsole to monitor their applications. I have not seen this in action .
Any help is much appreciated http://images.devshed.com/fds/smilies/smile.gif
Thanks (0 Replies)
Discussion started by: aish11
0 Replies
7. Shell Programming and Scripting
Hi friends,
I want to converting a task ,of making few words in my task mail bold and underlined sometimes, automated through sendmail.
I have never used sendmail/mailx before.
What i want is my ouput which looks like below:
+++++++++++++++
DETAILS: sqlid:6mbiosdfsdff parsing_schema_name:... (1 Reply)
Discussion started by: kunwar
1 Replies
8. Shell Programming and Scripting
OS Solaris 10,
DB oracle 10g
Hello,
We currently have a BASH script that runs and moves image files from a remote server to the local db server. A snippet of the code shows that we are picking up all Images that are 'mtime -1'
some code...
for file in `ssh user@10.200.200.10 'find... (3 Replies)
Discussion started by: JonP
3 Replies
9. Programming
Hi folks...
I am working on a project where I need to have online bash bash shell integrated in my web page. I am not clear of how to do it. can any one suggest?? The UI needs to be developed in c#. (11 Replies)
Discussion started by: keerthi koneru
11 Replies
timex(1) General Commands Manual timex(1)
NAME
timex - time a command; report process data and system activity
SYNOPSIS
command
DESCRIPTION
reports in seconds the elapsed time, user time, and system time spent in execution of the given command. Optionally, process accounting
data for command and all its children can be listed or summarized, and total system activity during the execution interval can be reported.
The output of is written on the standard error. Timex returns an exit status of 1 if it is used incorrectly, if it is unable to fork, or if
it could not exec command . Otherwise, timex returns the exit status of command.
Options
Report the total number of blocks read or written and
total characters transferred by command and all its children. This option works only if the process accounting soft-
ware is installed.
List process accounting records for
command and all its children. The suboptions and modify the data items reported. They behave as defined in acct-
com(1M). The number of blocks read or written and the number of characters transferred are always reported.
This option works only if the process accounting software is installed and has been invoked to create
Report total system activity (not just that due to
command) that occurred during the execution interval of command. All the data items listed in sar(1M) are reported.
EXAMPLES
A simple example:
A terminal session of arbitrary complexity can be measured by timing a sub-shell:
session commands
EOT
WARNINGS
Process records associated with command are selected from the accounting file by inference, since process genealogy is not available.
Background processes having the same user-ID, terminal-ID, and execution time window are spuriously included.
SEE ALSO
sar(1M), acctcom(1M).
STANDARDS CONFORMANCE
timex(1)