Hi dear friends,
Im writing a shell script which has to select the strings based on the position.
but the problem is there is no field seperator.
Normally a datafile contains 2000 records (lines) and each line is of size 500 charecters.
I want to select the fields from all the lines which... (10 Replies)
Hi guys, my supervisor has asked me to solve the problem in 7 days, I've taken 3 days to think about it but couldn't figure out any idea.
Please give me some thoughts with the following problem,
I have index.database that has only index date:
1994
1995
1996
1997
1998
1999
I have... (6 Replies)
hello.
I'm somewhat a novice here so please be patient. My stumbling block when loading csvs into ORACLE tables is this:
I need to read a csv datafile, check several fields in each line, and if any of stated fields contain A ZERO only then replace it with a null/blank character.
I had a... (9 Replies)
Hello,
I've tried searching the forum for an answer to my question, but without any luck...
I have a datafile looking simplified as follows:
01 02 03 04 05 06
07 08 09 10 11 12
13 14 15 16 17 18
19 20 21 22 23 24
I want to reverse it by rearranging all the numbers from last to... (16 Replies)
Howdy experts,
We have some ranges of number which belongs to particual group as below.
GroupNo StartRange EndRange
Group0125 935300 935399
Group2006 935400 935476
937430 937459
Group0324 935477 935549
... (6 Replies)
I am trying to add free and used memory (so that i can compute percentage used)of remote nodes using shell script. I use the openssh-server,expect tool and ssh script.
1)login.txt (info of nodes):
ip1|username|password
ip2|username|password
.
.
.
3)sshlogin.sh
#!/bin/bash ... (1 Reply)
Hi,
I have two files:
first input file is having 7-8 columns,
and second data file is like
I want to arrange my datafile1 in the order given in second data file, by comparing the seconddatafile with the second column of first file and print the entire line....also if any... (2 Replies)
I am trying to make a script to read marks from a file then find out how many of them are above 40 (passing marks). However my script is getting stuck at "read num". I dont understand whats the problem. Any help will be much appreciated.
#!/bin/bash
set -x
count=0; countP=0; PASSMK=40... (6 Replies)
Hello,
I have snippet code from Lippman's <<C++ primer>>.
The program is to convert regular decimal (0 ~ 15) numbers to basic hexdecimals. The instruction tells the program will execute by hitting newline at the end. When I tried to run the compiled program, hitting ENTER did not work as... (3 Replies)
Hello,
I have the following script
while read id fraction
do
sambamba -h -f bam -t 10 --subsampling-seed=50 -s $frac ${id}.bam -o ${id}.out.bam
done < fraction.txt
where fraction.txt has two columns (id,fraction) and 50 rows
I am unable to run this as bash is not able to read the second... (2 Replies)
Discussion started by: nans
2 Replies
LEARN ABOUT NETBSD
acpitz
ACPITZ(4) BSD Kernel Interfaces Manual ACPITZ(4)NAME
acpitz -- ACPI Thermal Zone
SYNOPSIS
acpitz* at acpi?
DESCRIPTION
The acpitz driver supports so-called ACPI ``Thermal Zones''. The temperature can be monitored by the envsys(4) API or the envstat(8) com-
mand.
The distinction between ``active'' and ``passive'' cooling is central to the abstractions behind acpitz. These are inversely related to each
other:
1. Active cooling means that the system increases the power consumption of the machine by performing active thermal management (for exam-
ple, by turning on a fan) in order to reduce the temperatures.
2. Passive cooling means that the system reduces the power consumption of devices at the cost of system performance (for example, by low-
ering the CPU frequencies) in order to reduce the temperatures.
Only active cooling is currently supported on NetBSD.
It should be also noted that the internal functioning of these cooling policies vary across machines. On some machines the operating system
may have little control over the thermal zones as the firmware manages the thermal control internally, whereas on other machines the policies
may be exposed to the implementation at their full extent.
EVENTS
The acpitz driver knows about the active cooling levels, the current temperatures, and critical, hot, and passive temperature thresholds (as
supported by the hardware). The driver is able to send events to powerd(8) when the sensor's state has changed. When a Thermal Zone is
either critical or ``hot'', the /etc/powerd/scripts/sensor_temperature script will be invoked with a critical-over event.
The critical temperature is the threshold for system shutdown. Depending on the hardware, the mainboard will take down the system instantly
and no event will have a chance to be sent.
SEE ALSO acpi(4), acpifan(4), envsys(4), envstat(8), powerd(8)HISTORY
The acpitz driver appeared in NetBSD 2.0.
AUTHORS
Jared D. McNeill <jmcneill@invisible.ca>
CAVEATS
While no pronounced bugs are known to exist, several caveats can be mentioned:
o Passive cooling is not implemented.
o There is no user-controllable way to switch between active and passive cooling, although the specifications support such transforms on
some machines.
o The ``hot'' temperature is a threshold in which the system ought to be put into S4 sleep. This sleep state (``suspend to disk'') is not
supported on NetBSD.
BSD January 9, 2011 BSD