06-29-2006
Thanks a lot, I had get it done. Another question, the sender of the file will be Super-User <root@hostname>. I wish to change the root to the name of the script I wrote. Is it possible to do so? Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi
I am using mailx to send email and am wondering if there is a way I can send the email from a different user than the user logged in.
something like do-not-reply@xyz.com
Thank you. (1 Reply)
Discussion started by: rakeshou
1 Replies
2. Shell Programming and Scripting
I am having trouble figuring this code
I want to grep a text from a file and if it match certain text it break out of the loop or it should continue searching for the text
Here is what I have written but it isn't working
while true
f=`grep 'END OF STATUS REPORT' filename`
do
if ... (9 Replies)
Discussion started by: Issemael
9 Replies
3. Shell Programming and Scripting
Hello all, I created the below script....and it seemed to be working fine. My problem is i want the script to ignore rest of the things if my condition is not met but do not exit....
#!/bin/ksh
###########################
###########################
# Set name of the listener, this... (2 Replies)
Discussion started by: abdul.irfan2
2 Replies
4. UNIX for Advanced & Expert Users
All,
I wrote the following section of code (which logically in PHP would of worked):
tmpPATH=${1}
tmpTAG=${2}
if
then
while read tmpTAG tmpPATH
do
fi
echo $tmpTAG
echo $tmpPATH
if
then
done < ./config.cfg
fi (4 Replies)
Discussion started by: Cranie
4 Replies
5. UNIX for Advanced & Expert Users
only wc -l greater than 0 then send email to owner, otherwise do nothing.
ie.
result=powermt display dev=all|awk '{print $7}'|grep -i dead|wc -l
if
then
echo $result
else
:
fi
mailx -s "there is dead path (s)" "mymail@mydomain.com"
-----------
it is not working... (2 Replies)
Discussion started by: orafup
2 Replies
6. Shell Programming and Scripting
Hello everyone,
I am trying to create function or script to send email from an address book file.
Here is the file format i have,
Susan:Miller:M:123 Main Street:Philadelphia:PA:17101:666-645-6666:Susan.Miller@gmail.com:07/12/1979 Robert:Langan:S:32 North Avenue:San... (5 Replies)
Discussion started by: asistant
5 Replies
7. Shell Programming and Scripting
I created a bash script that gets a file formats it, sends an email to the user(s), however, for whatever reason, it will send an email per line with all of the lines in it, so essentially the user will get 10 duplicate emails with the same 10 results. I've modified the script to put the results of... (2 Replies)
Discussion started by: hotdang
2 Replies
8. Shell Programming and Scripting
Hi All,
Seeking for your assistance to get the records once the $2 met the condition.
Ex. file 1.txt
123455,10-Aug-2020 07:33:37 AM,2335235,1323534,12343
123232,11-Aug-2015 08:33:37 PM,4234324,1321432,34364
Output:
123455,10-Aug-2020 07:33:37 AM,2335235,1323534,12343
What i did... (5 Replies)
Discussion started by: znesotomayor
5 Replies
9. Shell Programming and Scripting
Hi All,
Seeking for your assistance on how to append the specific string when $3 condion met.
ex. file1.txt
ar0050046b16,5,888,0,0,0,0.00,0.00,0.00,0.00,25689.55
ar0050046b16,5,0,0,0,0,0.00,0.00,0.00,0.00,25689.55
ar0050046b16,5,0,0,0,0,0.00,0.00,0.00,0.00,25689.55
expected output:... (5 Replies)
Discussion started by: znesotomayor
5 Replies
10. UNIX for Beginners Questions & Answers
I have a file.txt containing the following:
Query= HWI-ST863:386:C5Y8UACXX:3:2302:16454:89688 1:N:0:ACACGAAT
Length=100
Score E
Sequences producing significant alignments: (Bits) Value
... (2 Replies)
Discussion started by: tons92
2 Replies
LEARN ABOUT DEBIAN
superiotool
SUPERIOTOOL(8) System Manager's Manual SUPERIOTOOL(8)
NAME
superiotool - Super I/O detection tool
SYNOPSIS
superiotool [-delVvh]
DESCRIPTION
superiotool is a GPL'd user-space utility which can
* detect which Super I/O chip is soldered onto your mainboard,
* at which configuration port it's located (usually 0x2e or 0x4e), and
* dump all register contents of the Super I/O chip, together with the
default values as per datasheet (to make comparing the values easy).
It is mainly used for coreboot development purposes (see coreboot.org for details on coreboot), but it may also be useful for other things.
The list of supported Super I/O chips is available at http://coreboot.org/Superiotool#Supported_devices, but it can also be viewed by run-
ning superiotool -l.
OPTIONS
If no command line option is specified, superiotool merely tries to detect the Super I/O chip. You must use the -d option to dump the
Super I/O register contents.
-d, --dump
Dump Super I/O registers (if the Super I/O chip is detected and superiotool supports the --dump option for this chip). The output
will look something like this:
$ superiotool -d
Found SMSC FDC37N769 (id=0x28, rev=0x01) at 0x3f0
Register dump:
idx 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11...
val 20 90 80 f4 00 00 ff 00 00 00 40 00 0e 28 01 00 00 00...
def 28 9c 88 70 00 00 ff 00 00 00 00 00 02 28 NA 00 00 80...
The idx fields contain the register numbers/indexes of the Super I/O, the val fields contain the contents of the respective register
as read from the Super I/O, and the def fields contain the default values for the respective register, as specified in the
datasheet.
The numbers in the output are all in hex format, and some special values may also occur: NA stands for not available (i.e., the
datasheet doesn't specify a default value for the respective register), RR means reserved (the datasheet explicitly marks this reg-
ister as reserved), and MM means misc, which can mean several things. It's recommended to consult the datasheet for detailed infor-
mation about the MM fields.
-e, --extra-dump
Dump extra secondary register contents too, if available. Only in combination with the --dump option. This option will, for
instance, dump the environmental controller (EC) configuration registers for the ITE IT8716F chip. The format is similar to the out-
put of the --dump option.
-l, --list-supported
List all Super I/O chips recognized by superiotool. The phrase (dump available) following a chip name indicates that superiotool
supports the --dump option for this chip.
-V, --verbose
Enable verbose mode. This option can be used together with the -d option.
The verbose output will not only list for which type of Super I/O the tool is scanning, but also at which configuration port it's
probing, and which Super I/O initialization sequence is used. If no Super I/O was detected in a probing run, the returned output
will be shown, as it may be useful for figuring out which (currently unrecognized) Super I/O chip this may be.
-v, --version
Show version information and exit.
-h, --help
Show a help text and exit.
BUGS
Please report any bugs at http://tracker.coreboot.org/trac/coreboot/newticket or on the coreboot mailing list (http://coreboot.org/Mail-
inglist).
AUTHORS
Please see the individual source code files and/or the README file.
LICENCE
superiotool is covered by the GNU General Public License (GPL), either version 2 of the License, or (at your option) any later version.
SEE ALSO
sensors-detect(8)
January 18, 2008 SUPERIOTOOL(8)