Hi anyone,
i need to compare two decimal numbers
i thought that it could be do it with if but... :(
So, i'm writing in csh and i really apreciate if anyone can help me
if ( $ppl_kn <= $ppl_wb ) then
echo "############# KNdiscount model has the lowest perplexity"
set... (5 Replies)
Hi all,
I have a issue... Is it possible to compare integer value with decimal value.
If it is not possible,then how can i compare 2 decimal values in born shell.thanks! (3 Replies)
Hi,
I have a list of values from associative array from 0,..till 1.0000.
I tried various sort options; sort -g, sort -nr but it still couldnt work. In other words, the numbers are not sorted accordingly.
Please help.
Thanks. (1 Reply)
Hi All,
Is there any command which can convert binary decimal coded values to ascii values...
i have bcd values like below
оооооооооооо0о-- -v -
Pls suggest a way to convert this.
Thanks,
Deepti.Gaur (3 Replies)
Hi All,
In my script I've written like this-
c=$( expr 100 / 3);echo $c
The output coming is 33. but I want to see 33.33, decimal values too. How to get that?
Thanks,
Naresh (3 Replies)
i need to do camparisions like the below.
For the case when first=10 and second=9.9 the scripts displays process failed.
I need to be able to convert the values to integer before doing the comparision.
Like 9.9 should be rounded over to 10 before doing comparision.
Please advice how can... (3 Replies)
I need decimal comparing with if. Check if apache version is less than 2.2.17.
I tried this and not working.
#!/bin/bash
apachever=`/usr/local/apache/bin/httpd -v | head -1 | awk '{print $3}' |cut -d/ -f 2`
if ]; then
echo "Apache version less than 2.2.17"
else
... (7 Replies)
I have 2 files say tp1.txt and tp2.txt having following data
cat tp1.txt
abc,2.20,IN20
acb,3.15,DN10
bca,3,RD10
cat tp2.txt
alv,1.00,IN20
aaa,4.05,DD10
abb,5.50,RD12
i want to compare the values on 2nd field of both the file, if value of first tp1.txt is greater than value... (3 Replies)
I have 2 arrays of values for example
A1 ={10 15 3 21}
A2 ={10 15 3 22}
I need to check which one has greater values. However:
A1 ={10 15 3 21}
A2 ={10 15 3 21 3} - this one would be greater.
A1 ={10 15 5 21} - this one greater
A2 ={10 15 3 21}
Basically, I want to compare patch... (6 Replies)
Discussion started by: Jutsimitsu
6 Replies
LEARN ABOUT DEBIAN
amttool
amttool(1) General Commands Manual amttool(1)NAME
amttool - remotely control Intel AMT managed machines.
SYNOPSIS
amttool host [ command ] [ arg(s) ]
DESCRIPTION
amttool is a perl script which speaks SOAP to Intel AMT managed machines. It can query informations about the machine in question and also
send some commands for basic remote control.
host is the hostname or IP address of the machine amttool should control. command is an optional command.
You must set fill AMT_PASSWORD environment variable with the AMT password.
For more inforamtions on Intel AMT check amt-howto(7).
COMMANDS
info gather information (default).
reset [ special ]
reset machine, with optional special command (see section below).
powerup [ special ]
turn on machine.
powerdown
turn off machine.
powercycle [ special ]
powercycle machine.
netinfo
print network configuration (requires AMT 2.5+).
netconf if link [ ip mask gw [ dns1 [ dns2 ]]]
configure network interface (requires AMT 2.5+). if is the interface handle, link the link policy. If in doubt just feed in what
the netinfo command prints. ip is the IPv4 address, mask the netmask, gw the default gateway, dns1 and dns2 are the DNS Servers.
If no IP configuration is specified the tool tries to configure the machine in shared mac address mode with dhcp, otherwise in sepa-
rate mac address mode with static IP address. Default for dns1 is the gateway address, for dns2 it is 0.0.0.0.
SPECIAL COMMANDS
Special commands can optionally be specified for reset, powerup and powercycle. They change the default boot behavior of the machine.
bios Asks for the BIOS boot messages being redirected to serial-over-lan.
pxe Network boot via PXE.
hd Boot from local disk.
hdsafe Boot from local disk (safe mode).
cd Boot from CD/DVD.
diag Boot in diagnostics mode.
ENVIRONMENT
AMT_PASSWORD
AMT password.
AMT_DEBUG
Enable debug output.
SEE ALSO amtterm(1), gamt(1), amt-howto(7)AUTHOR
(c) 2007 Gerd Hoffmann <kraxel@redhat.com>
(c) 2007,08 Gerd Hoffmann amttool(1)