> -----Original Message-----
> From: Linux on 390 Port [mailto:[email protected]] On
> Behalf Of Stock, Roger W
> Sent: Wednesday, March 03, 2010 3:03 PM
> To: [email protected]
> Subject: Sorting in Linux
>
> We are considering a sort product to replace the Linux sort,
> but we need to get a handle on how much sorting we do.
> All of our SUSE 10 Linux guests (under VM 5.4 on z10-BC IFLs)
> are servers and any programs that run on them would call sort.
> We do not have any typical batch sort operations that run on Linux.
>
> Does anyone have a way of tracking how much the Linux sort is called?
>
> Thanks,
> Roger
Well, you might not want to do it this way, but simply "front end" the actual
"sort" command with your own shell script.
mv /bin/sort /bin/real-sort
cat <<EOF >/bin/sort
#!/bin/sh
#replacement sort
pid=$$
(echo "start ${pid};date;whoami") >>/var/log/sort
real-sort "$@"
(echo "stop ${pid};date;whoami") >>/var/log/sort
EOF
chmod 755 /bin/sort
Or look at turning on accounting (apropos account or man accton)
--
John McKown
Systems Engineer IV
IT
Administrative Services Group
HealthMarkets(r)
9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * (817)-961-6183 cell
[email protected] * www.HealthMarkets.com
Confidentiality Notice: This e-mail message may contain confidential or
proprietary information. If you are not the intended recipient, please contact
the sender by reply e-mail and destroy all copies of the original message.
HealthMarkets(r) is the brand name for products underwritten and issued by the
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The
MEGA Life and Health Insurance Company.SM
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390