S
sonu
<<df>> is disk free command in Unix. I am using Sun OS 5.9. When
executed df command i get output like
[XXX@XXXXdb:~]#df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t8d0s0 6.3G 2.0G 4.3G 32% /
/xxx 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
swap 948M 104K 947M 1% /var/run
swap 2.1G 1.2G 947M 57% /tmp
/dev/dsk/YYY 8.3G 4.2G 4.0G 52% /export/home/u01
/dev/dsk/YYY 8.3G 1.7G 6.5G 22% /export/home/u02
/dev/dsk/YYYY 8.3G 3.3G 5.0G 40% /export/home/u03
i want this output to come in html formate
so on mail it will look like
--------------------------------------------------------------------------------------------|
Filesystem | size | used | avail | capacity| Mounted
on|
-------------------------------------------------------------------------------------------
|
/dev/dsk/c0t8d0s0| 6.3G | 2.0G | 4.3G | 32% |/
|
-------------------------------------------------------------------------------------------|
/xxx | 0K | 0K | 0K | 0% |/
proc |
--------------------------------------------------------------------------------------------|
basically in row column format like we see a table on html page.
I know how to mail it but i don't know how to change this text output
from df to an html page.
step 1 will be
df > 123
then how to change and replace the text each and every time using
program?
executed df command i get output like
[XXX@XXXXdb:~]#df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t8d0s0 6.3G 2.0G 4.3G 32% /
/xxx 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
swap 948M 104K 947M 1% /var/run
swap 2.1G 1.2G 947M 57% /tmp
/dev/dsk/YYY 8.3G 4.2G 4.0G 52% /export/home/u01
/dev/dsk/YYY 8.3G 1.7G 6.5G 22% /export/home/u02
/dev/dsk/YYYY 8.3G 3.3G 5.0G 40% /export/home/u03
i want this output to come in html formate
so on mail it will look like
--------------------------------------------------------------------------------------------|
Filesystem | size | used | avail | capacity| Mounted
on|
-------------------------------------------------------------------------------------------
|
/dev/dsk/c0t8d0s0| 6.3G | 2.0G | 4.3G | 32% |/
|
-------------------------------------------------------------------------------------------|
/xxx | 0K | 0K | 0K | 0% |/
proc |
--------------------------------------------------------------------------------------------|
basically in row column format like we see a table on html page.
I know how to mail it but i don't know how to change this text output
from df to an html page.
step 1 will be
df > 123
then how to change and replace the text each and every time using
program?