I'm trying to get GNU screen to show the output of "uptime" for the host being accessed in the current window, but unfortunately, no matter what window I go in, it shows the uptime for the host I originally launched screen in ("adminhost").
Does anyone know how to get this to update from the... (0 Replies)
For example:
I got a list of file end at .txt. I want all of them do the same command like
grep '^@' and attached it to a output .sh file.
This is the command I type:
ls *.txt | awk '{print "grep \' \^\@\' ",$1}' > txt.sh
My desired output is when I type the command "more txt.sh "
The... (4 Replies)
Hi - Within perl I want to execute a system command. I want to re-direct all the output from the command to a file (@result = `$cmd`;), but I ALSO want the results to be displayed on the screen (system("$cmd");
The reason is this - if the command completes, I want to process the output. If the... (6 Replies)
When trying to use backticks for system commands, is there a way to read the error messages if a command doesn't execute properly?
I have no problem getting the results if the command is properly executed.
Ex.
my @result = `dir`;
foreach my $line (@result) {
print "Result = $line";... (2 Replies)
It's been covered in lots of places, and I have banged on it for about an hour and I am not making any headway on this particular string.
A weather-related web page I want to monitor has text on the screen, but it changes. Right now, the page has "None issued by this office recently." but in 2... (4 Replies)
Hello,
Can't we use backtick operator inside awk.
nawk '
BEGIN {
RS=""; FS="\</input\>"
}
{
for(i=1;i<=NF;i++) {
if ($i~/\"\"/) {
print `grep XYZ $i`;
print $i
}
}
}
' test
In the following code, I need to print $i and some... (8 Replies)
Discussion started by: shekhar2010us
8 Replies
LEARN ABOUT DEBIAN
nstat
RTACCT(8) System Manager's Manual RTACCT(8)NAME
nstat, rtacct - network statistics tools.
SYNOPSIS
Usage: nstat [ -h?vVzrnasd:t: ] [ PATTERN [ PATTERN ] ]
Usage: rtacct [ -h?vVzrnasd:t: ] [ ListOfRealms ]
DESCRIPTION
nstat and rtacct are simple tools to monitor kernel snmp counters and network interface statistics.
OPTIONS -h, --help Print help
-V, --version
Print version
-z, --zero
Dump zero counters too. By default they are not shown.
-r, --reset
Reset history.
-n, --nooutput
Do not display anything, only update history.
-a, --ignore
Dump absolute values of counters. The default is to calculate increments since the previous use.
-s, --noupdate
Do not update history, so that the next time you will see counters including values accumulated to the moment of this measurement
too.
-j, --json
Display results in JSON format.
-d, --interval <INTERVAL>
Run in daemon mode collecting statistics. <INTERVAL> is interval between measurements in seconds.
Time interval to average rates. Default value is 60 seconds.
SEE ALSO
lnstat(8)
27 June, 2007 RTACCT(8)