01-27-2014
Do not post technical questions in non-technical forums.
This is the second time today, so you have been set to "Read Only", sorry.
Follow forum rules, directions and guidelines.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi ,
i am beginner to Unix, I have one small script which execute java programme,it has java command input output structure . Right now i have given Input output structure manually that is on same directory, now how can i pass that by commandline
#!/bin/sh
java Classjava input.txt... (5 Replies)
Discussion started by: sam70
5 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a shell script with an ambedded awk script.
i need to pass a script variable to the awk script.
Please help.
Thanks in advance
Himani (3 Replies)
Discussion started by: HIMANI
3 Replies
3. Shell Programming and Scripting
Hello experts,
can I return a value from gawk to a shell script ?
My script as follows,
#Here I want the num value to shell script so that I can use later
gawk '
{
split($0,num,",");
print num
}'
gawk -v no=$number '{print no}'
file1
... (3 Replies)
Discussion started by: user_prady
3 Replies
4. Shell Programming and Scripting
Hello Experts,
Actually I was searching for a solution here in this forum , but didn't get what exactly I want . Is this possible to do in awk ?
I am trying to do some thing like below in ksh script . Upto my knowledge I can pass shell script to awk with "-v " option.
But I... (3 Replies)
Discussion started by: user_prady
3 Replies
5. Shell Programming and Scripting
This is my script structure
main script calls configure script which needs to be run as a different user and the configure script calls my application installation script. the application instruction script prompts the user for a directory which I need to pass from my main or configure script.
... (4 Replies)
Discussion started by: cmastays
4 Replies
6. Post Here to Contact Site Administrators and Moderators
Variable I have in my shell script
diff=$1$2.diff
id=$2
new=new_$diff
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff | awk -F'~' ''$2 == "$id"' {print $0}' > $new
I could see value of $id is not passing to the awk... (0 Replies)
Discussion started by: Ashunayak
0 Replies
7. Shell Programming and Scripting
I am trying to automate a testcase . I am installing some software and it waits for user input after displaying "Do you want to continue ? " I am trying to do this in shell scripting.
#!/bin/bash
#!/usr/bin/expect -f
/usr/bin/expect << EOF
spawn apt-get install openjdk-7-jdk
expect "*Do you... (1 Reply)
Discussion started by: Abdul Navaz
1 Replies
8. Shell Programming and Scripting
Hi All,
I am new to shell script. I am trying to pass value from .sh file to .sql file .
But I am able to run the .sql file from .sh file with values in sql file.
But I am unable to pass the values from .sh file. can some one please help to resolve this.
here is my .sh file
s1.sh
... (4 Replies)
Discussion started by: reddy298599
4 Replies
9. Shell Programming and Scripting
Hi,
Please need to print the Rej variable outsite the awk script which is given below...please advised how to achieve it.
#!/bin/bash
echo "Enter DMU Pipe delimited File name for the Feed to be validated"
read DMU_File
echo "Enter Pre-DMU File name for the Feed"
read Predum_file
... (3 Replies)
Discussion started by: pelethangjam
3 Replies
10. Shell Programming and Scripting
I want to make a config file which contain all the paths.
i want to read the config file line by line and pass as an argument on my below function.
Replace all the path with reading config path line by line and pass in respective functions.
how can i achieve that?
Kindly guide.
... (6 Replies)
Discussion started by: sadique.manzar
6 Replies
LEARN ABOUT DEBIAN
thinkfan
THINKFAN(1) thinkfan THINKFAN(1)
NAME
thinkfan - A simple fan control program
SYNOPSIS
thinkfan [-hnqzD [-b BIAS] [-c CONFIG] [-s SECONDS] [-p [DELAY]]]
DESCRIPTION
Thinkfan can use temperature inputs and one PWM control file in /sys/class/hwmon or the Thinkpad-specific thinkpad_acpi interface in
/proc/acpi/ibm. If nothing is specified, it tries to use /proc/acpi/ibm.
WARNING: This program does only very basic sanity checking on the configuration. That means that you can set your temperature limits as
insane as you like.
Thinkfan has two modes of operation:
SIMPLE MODE
In simple mode, it uses only the highest temperature found in the system. That may be dangerous, e.g. for hard disks. That's why you
should provide a correction value (i.e. add 10-15 [u00B0]C) for the sensor that has the temperature of your hard disk (or battery...). See
the example config files for details about that.
COMPLEX MODE
In complex mode, temperature limits are defined for each sensor thinkfan knows about. Setting suitable limits for each sensor in your sys-
tem will probably require a bit of experimentation and good knowledge about your hardware, but it's the safest way of keeping each compo-
nent within its specified temperature range. See http://www.thinkwiki.org/wiki/Thermal_Sensors for details on which sensor measures what
temperature in a Thinkpad. On other systems you'll have to find out on your own. See the example configs to learn about the syntax.
CONFIGURATION
Some example configurations are provided with the source package. For detailed explanations please read the README file. If you installed
thinkfan from a distribution package, you may find them under /usr/share/doc or wherever your package manager puts documentation.
OPTIONS
-h Show a short help message
-s Maximum seconds between temperature updates (default: 5)
-b Floating point number (0 ~ 20) to control rising temperature exaggeration (see README for why this is needed). Default 5.0
-c Load different configuration file (default: /etc/thinkfan.conf)
-n Do not become a daemon, log to both terminal and syslog
-q Be quiet (no status info on terminal)
-z Assume we don't have to worry about resuming from standby when using the sysfs interface (see README!)
-p Use the pulsing-fan workaround (for older Thinkpads). Takes an optional floating-point argument (0-10s) as depulsing duration.
Default 0.5s.
-D DANGEROUS mode: Disable all sanity checks. May damage your hardware!!
BUGS
If you have any problems with thinkfan, please go to the help forum at sf.net: http://sourceforge.net/projects/thinkfan/forums/forum/905019
thinkfan 0.8 October 2011 THINKFAN(1)