Hello there,
I wrote a shell script to modify the code for some of our clients in our client database. Before starting the data modification the program performs a few checks.
When a check is being performed, it should be shown on the screen of the user running the program, the result of... (5 Replies)
Hi,
At the moment, I have the following statements which show like this, but I want it all on one line. How can I do this?
----------------------------
echo "There are"
cat menu | wc -l
echo "characters in the text"
----------------------------
Thanks! (5 Replies)
Hello everyone,
I got this type of error when programming in bash
new.bat: 16: cannot create : Directory nonexistent
$bool
new.bat: 37: Syntax error: "then" unexpected (expecting "fi")
Does anyone know why?
Here is my code
#!bin/bash
#function helps(){... (4 Replies)
Hi everyone,
May you help me with the correct syntax of the follow bash statements please
X=10
if ]; then
echo "The value is between 1 and 5"
for ((i=1;i<=${X})); do
echo $i
done
else if ]; then
echo "The value is between 6 and 10"
for ((i=1;i<=${X})); do
... (5 Replies)
Hi All,
Am trying to write wrapper shell/bash script on a utility tool for which i need to pass 2 files as arugment to execute utility tool.
Wraper script am trying is to do with above metion 2 files.
utility tool accepts :
a. userinfo file : which contains username
b. item file : which... (2 Replies)
Heyas
I'm trying to read/display a file its content and put borders around it (tui-cat / tui-cat -t(ypwriter).
The typewriter-part is a 'bonus' but still has its own flaws, but thats for later.
So in some way, i'm trying to rewrite cat using bash and other commands.
But sadly it fails on... (2 Replies)
Would these two sections of code be equivalent?
The original is the first one, followed by the new
implementation.
if ; Then
...
else
if ; Then
...
fi
fi
if ; Then
...
else if ; Then
...
fi (4 Replies)
Hello,
I'm works on Ubuntu server
My goal : I would like to read file line per line, but i want to started at the end of file.
Currently, I use instructions :
while read line;
do
COMMAND
done < /var/log/apache2/access.log
But, the first line, i don't want this. The file is long... (5 Replies)
How to run several bash commands put in bash command line without needing and requiring a script file.
Because I'm actually a windows guy and new here so for illustration is sort of :
$ bash "echo ${PATH} & echo have a nice day!"
will do output, for example:... (4 Replies)
Hello Forum,
I'm looking to expand the following command:
INACTIVE_KERNELS=$(python -mplatform | grep -qi red && rpm -qa | grep '^kernel-' |grep -vE `uname -r` | paste -sd \; || echo "Not Red Hat Server")
Currently this command will check if my server is RedHat server using the grep -qi... (6 Replies)
Discussion started by: greavette
6 Replies
LEARN ABOUT CENTOS
sensors
sensors(1) Linux User's Manual sensors(1)NAME
sensors - print sensors information
SYNOPSIS
sensors [ options ] [ chips ]
sensors -s [ chips ]
sensors --bus-list
DESCRIPTION
sensors is used to show the current readings of all sensor chips.
sensors -s is used to set all limits as specified in the configuration file.
sensors --bus-list is used to generate bus statements suitable for the configuration file.
OPTIONS -c, --config-file config-file
Specify a configuration file. If no file is specified, the libsensors default configuration file is used. Use `-c /dev/null' to tem-
porarily disable this default configuration file.
-h, --help
Print a help text and exit.
-s, --set
Evaluate all `set' statements in the configuration file and exit. You must be `root' to do this. If this parameter is not specified,
no `set' statement is evaluated.
-A, --no-adapter
Do not show the adapter for each chip.
-u Raw output. This mode is suitable for debugging and for post-processing of the output by scripts. It is also useful when writing a
configuration file because it shows the raw input names which must be referenced in the configuration file.
-v, --version
Print the program version and exit.
-f, --fahrenheit
Print the temperatures in degrees Fahrenheit instead of Celsius.
--bus-list
Generate bus statements suitable for using in sensors.conf. Such bus statements are only needed if you have several chips sharing
the same address on different buses of the same type. As bus numbers are usually not guaranteed to be stable over reboots, these
statements let you refer to each bus by its name rather than numbers.
FILES
/etc/sensors3.conf
/etc/sensors.conf
The system wide configuration file. See sensors.conf(5) for further details.
SEE ALSO sensors.conf(5)AUTHOR
Frodo Looijaard and the lm_sensors group http://www.lm-sensors.org/
lm-sensors 3 November 2012 sensors(1)