bash scripting question:
if: "cat /var/log/messages" yeilds:
it87-isa-0290 and if: "tail -f /var/log/messages | grep eth0" yeilds: Jan 22 21:44:14 bruley kernel: I-DROP-IN=eth0 OUT= Why does: "tail -f /var/log/messages | grep eth0 >> /var/log/eth0.log" What happens to the standard out ? (I am running as root and I have full write permision for eth0.log) Thank You --
Adapter: ISA adapter
Algorithm: ISA algorithm
VCore 1: +1.79 V (min = +1.48 V, max = +2.01 V)
VCore 2: +1.24 V (min = +1.02 V, max = +1.37 V)
+3.3V: +3.21 V (min = +2.80 V, max = +3.79 V)
+5V: +4.97 V (min = +4.23 V, max = +5.75 V)
+12V: +12.00 V (min = +10.16 V, max = +13.80 V)
Stdby: +4.80 V (min = +4.23 V, max = +5.75 V)
VBat: +0.00 V
fan1: 5578 RPM (min = 3000 RPM, div = 2)
fan2: 2922 RPM (min = 0 RPM, div = 2)
M/B Temp: +43C (low = +10C, high = +55C)
CPU Temp: +44C (low = +10C, high = +60C)
---------------------------------------------------------------------------
Jan 22 21:44:14 bruley kernel: I-DROP-IN=eth0 OUT=
MAC=00:50:bf:5e:a2:49:00:0a:42:6b:48:70:08:00 SRC=68.119.147.51
DST=66.191.74.157 LEN=56 TOS=0x00 PREC=0x00 TTL=115 ID=50038 PROTO=ICMP
TYPE=3 CODE=3 [SRC=66.191.74.157 DST=68.119.147.51 LEN=719 TOS=0x00
PREC=0x00 TTL=50 ID=0 DF PROTO=UDP SPT=27960 DPT=2477 LEN=699 ]
MAC=00:50:bf:5e:a2:49:00:0a:42:6b:48:70:08:00 SRC=68.119.147.51
DST=66.191.74.157 LEN=56 TOS=0x00 PREC=0x00 TTL=115 ID=50038 PROTO=ICMP
TYPE=3 CODE=3 [SRC=66.191.74.157 DST=68.119.147.51 LEN=719 TOS=0x00
PREC=0x00 TTL=50 ID=0 DF PROTO=UDP SPT=27960 DPT=2477 LEN=699 ]
create an empty log ?
Peter
http://tkvoice.netfirms.com/