Size: 1238
Comment:
|
Size: 1508
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 56: | Line 56: |
== Network interface data daily == rxtxData.sh: {{{#!highlight bash #!/bin/sh # chmod 755 rxtxData.sh # crontab -e # @daily /root/rxtxData.sh CURR=`date -u` DATA=`ifconfig eth0 | grep "RX bytes" | sed "s/:/ /g"` echo [$CURR] $DATA >> /root/rxtxData.log }}} |
bash
Bourne again shell.
Server loop
Add extra IP address to NIC
Adapted from http://unclean.org/howto/secondip.html
Add extra IP 192.168.1.5 to NIC eth0
Check port running
ColorBash prompt
https://wiki.archlinux.org/index.php/Color_Bash_Prompt
- start coloring: \[\e[color\]
- end coloring: \[\e[m\]
- \e[0;32m\] #green color
- \e[0;33m\] #yellow color
Network interface data daily
rxtxData.sh: