Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.

Help with speeding up my working script to take less time - how to use more CPU usage for a script

Login or Register to Reply

Thread Tools Search this Thread
# 8  
Rudi is right, i missed the conversion and header part, having hardcoded date value for the first field.

Please see correction :
ts=strftime("%Y-%m-%d %H:%M:%S",$1/1000)
print ts,$2,$7,$3,$4,$5,$6,$NF

Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Script for CPU usage -Linux
Hi all I was wondering if its possible to write a script to keep CPU usage at 90%-95%? for a single cpu linux server? I have a perl script I run on servers with multple cpu's and all I do is max all but one cpu to get into the 90'% utilised area. I now need a script that raises the CPU to...... Shell Programming and Scripting
Shell Programming and Scripting
CPU usage script
Hello Friends, I am trying to create a shell script which will check the CPU utilization. I use command top to check the %CPU usage. It give s me below output Cpu states: CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS 0 0.31 9.6% 0.0% 6.1% 84.3% 0.0% 0.0%...... Shell Programming and Scripting
Shell Programming and Scripting
Shell script to calculate the max cpu usage from the main script
Hi All, I have a script which does report the cpu usuage, there are few output parameter/fields displayed from the script. My problem is I have monitor the output and decide which cpu number (column 2) has maximum value (column 6). Since the output is displayed/updated every seconds, it's very...... Shell Programming and Scripting
Shell Programming and Scripting
Perl script limit cpu usage
Hi Experts, I am executing multiple instances(in parallel) of perl script on HP-UX box. OS is allocating substantial amount of CPU to these perl processes,resulting higher cpu utilization. Glance always shows perl processes are occupying majority of the CPU resource. It is causing slower...... HP-UX
Help with bash script - Need to get CPU usage as a percentage
I'm writing a bash script to log some selections from a sensors output (core temp, mb temp, etc.) and I would also like to have the current cpu usage as a percentage. I have no idea how to go about getting it in a form that a bash script can use. For example, I would simply look in the output of...... Shell Programming and Scripting
Shell Programming and Scripting
fwb_compile_all(1)						 Firewall Builder						fwb_compile_all(1)

fwb_compile_all - Wrapper script that compiles policies for multiple firewall objects
fwb_compile_all -ffile.xml [-dwdir] [-av] [obj[ obj ...]]
fwb_compile_all is a wrapper script that compiles policies for several firewall objects in one batch job. This script takes a list of fire- wall object names on the command line (or '-a' command line option, see below) and calls policy compiler for each one. The script correctly determines which policy compiler is needed depending on the firewall platform of each object.
-a The script processes all firewall objects in the "/Firewalls" subtree. -d wdir Specify working directory. Compiler creates file with iptables script in this directory. If this parameter is missing, then ipta- bles script will be placed in the current working directory. -f FILE Specify the name of the data file to be processed. -v Script passes this option to the compiler, this makes it print diagnostic messages indicating its progress.
Firewall Builder home page is located at the following URL:
Please report bugs using bug tracking system on SourceForge:
fwbuilder(1), fwb_ipt(1) fwb_ipf(1) fwb_pf(1) fwbedit(1), fwblookup(1)

Featured Tech Videos