Dynamic IP script output from df or mount formatting problem.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I have been playing with a script that works out your WAN / external
IP address then uploads it to a web site every hour, so when I am at
work and my provider changes my IP address I can look up what it has
changed too.

This script has been rewritten several times now and I now have an
html generated page that is starting to be functional with other
useful info HOWEVER,

I cannot get the output from a df, mount or even fdisk to work as html
because the text output from the commands contain no end of line
control codes so instead of the output looking like

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda3              8854472   7175844   1221580  86% /
/dev/hda1               101086     21616     74251  23% /boot
tmpfs                   127908         0    127908   0% /dev/shm

it looks like this with a word wrap, can any one show me how this is
resolved with a small script or command to pipe it though.

Filesystem Size Used Avail Use% Mounted on /dev/hda3 8.5G 6.9G 1.2G
86% / /dev/hda1 99M 22M 73M 23% /boot tmpfs 125M 0 125M 0% /dev/shm

Thanks

Paul

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux