General :: Free Command Line Tool Time Which Can Be Used To Find Timing Statistics For Various Commands?
Jun 24, 2011
I'd like to measure network latency for SNMP GET request. There is a free command line tool time which can be used to find timing statistics for various commands. For example it can be used with snmpget in the following way:$ time snmpget -v 2c -c public 192.168.1.3 .1.3.6.1.2.1.2.2.1.10.2IF-MIB::ifInOctets.2 = Counter32: 112857973real 0m0.162suser 0m0.069ssys 0m0.005sAccording to the manual, statistics conists of:
the elapsed real time between
invocation and termination,
the user CPU time (the sum of the
This is a bit of a long shot and I think the answer will be no but I thought I'd ask just in case. I have a number of tutorials in html but I want to be able to search for particular information in these files and display that information in the terminal rather than having to go through a browser. Apart from using grep which gives a pretty messy display or having to write a a specially Bash or python script, is there any command line tools that can provide such a function?
I was wondering how to connect to wireless in a Linux command line environment -> I'm looking for a ncurses like program to do this, not a bunch of commands and files to edit.
I am looking for a powerful command line tool to send and receive data via socket I mean define IP , port and data other options for command to send and receive data from sender.(like a high level socket programming)
I am looking for a tool that will tell me, in less than half a second, if the microphone is picking up any sound above a certain threshold. (I plan to then mute the Master channel with another command line tool, like amixer.)
Is there a way to specify to find that I only want text files (and not binary files)? Grep has an option to exclude binary files, so I thought find probably has a similar feature, but I've been unable to find it.
So, I usually write/find a test case generator for any code that I write. This type of code generally leads to some file output. To be thorough, I try and generate many different files to test my code on.
Say the command is like this:
Is there a way to automate this for many different values of the parameters and generate many different files?
I tried:
I wasn't able to use the $i in the filename, and without it the command gave me no errors, but did nothing else either. I know the Unix command line is very powerful, and I have a feeling that this should be possible, but I just don't know how to do it.
Is it possible to narrow down the ram command to give me JUST the free ram? Both commands that I know give me much more information that I would like to log.
Code: free -m
This line gives me this. I really only want the one under "free" Code: total used free shared buffers cached Mem: 1262 612 649 0 250 114 -/+ buffers/cache: 247 1014 Swap: 4010 6 4003
Code: cat /proc/meminfo
This line gives me this. I really only want "MemFree" Code: MemTotal: 1292372 kB MemFree: 636088 kB Buffers: 279032 kB Cached: 118768 kB SwapCached: 532 kB Active: 191408 kB Inactive: 324684 kB .....
I need a command-line weather report tool. There's one called "weather" but it's only for US, unfair! KDE widgets work fine, but I need a command-line one.
Just a quick question, is there a system user management app that could be accessed via a website for red hat (or really any distro)? Something kinda like phpMyAdmin, but can do useradd, userdel, groupadd, etc. For remote admins who don't know how to use ssh or the command line.
I need to find each line in a file which does NOT begin with a double quote (") and append that line to the previous line. I have been successful doing this using the following command: cat filname.csv | sed -e :a -e '$!Ns/ [^"]//;ta -e 'P;D' > newfilename.csv
My issue is the substitution. As you would expect after the line is appended to the previous line the first character is removed. I need it to not be removed. I tried: cat filname.csv | sed -e :a -e '$!Ns/ [^"]/&/;ta -e 'P;D' > newfilename.csv but it just hangs.
Goal: Input: "line 1" line 2 Output with existing sed command is: line 1ine2 I need it to be line1line2.
I'm trying to create a liveCD/USB for use of myself and my family. The idea is to set up the LiveCD to look like their used to seeing it. I know I can just copy the homedirectory but I wanted to do it via script so new user accounts could also have the common bells and whistles we use.So really I have two questions.1. Is it possible to add programs to the Gnome Tool Bar from command line? aka via a script2. Is it possible to modify the default panel template so new users get my changes?
I'm running Suse 11.3 with KDE4.I have an icon in my Kickoff Application Launcher for xterm. WhenI click on the icon, it apparently executes the command /usr/bin/xterm which generates a large window with a large font.I would like to get a smaller window with a smaller font. I knowhow to do that on a command line but to execute the commandI need to _already_ have a window open so I can run the command.So how do I (a) add a new icon to the KDE launcher which generates the command I want or (b) change the existing iconso that it executes MY command and not the basic /usr/bin/xterm?
I've read up some of the posts on this forum, but can't seem to find an answer. I have a web service within an Apache Tomcat instance installed on a Redhat linux server. I only have shell access to the server, and need to monitor outbound network traffic from my web service. Is there a unix command that will allow me to monitor all outbound traffic? I'm thinking fiddler, but a unix version? I've heard of things like ntop and iptraf, but I don't think those will help me in this instance.
I have ndiswrapper installed, and have successfully installed the drivers, I have also used nm-applet (and x forwarding) to configure wireless connections. My problem is that I want to reboot and unplug my wired connection and use just my wireless connection, but when I reboot it doesn't seem to connect to my network.
is there a command line tool or an independent tool that i can launch forwarding x I can use to search for and connect to wifi networks that would also have the ability to save configuration so that when I reboot the system automatically connects to my wifi?
I am looking for free and well known fax command line tools for receiving and sending faxes I wan it to save receive faxes in pdf format with file name included with caller phone number and date of receive:
Quote: for example: 5566545544-2011-5-11.pdf and any other format that I want.