Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-12-2003, 02:06 PM
|
#1
|
Member
Registered: Aug 2003
Location: CA, USA
Distribution: (Almost) LFS 6.1.1
Posts: 91
Rep:
|
converting man pages to windows-readable text
I'm trying to do some mass-man page reading and I want to read some man pages on another computer (windows). I used the following command:
man dhcpd.conf > /root/dhcpd.conf.man
the file was perfectly readable with more
I tried to mount a floppy to transfer the file with the command:
mount msdos -t /dev/fd0u1440 /mnt/floppy/
and it returned:
mount: fs type /dev/fd0u1440 not supported by kernel
I just decided to give up on this for the time being but if you know what is wrong let me know. I then used ftp to transfer it to my mac os x computer which has a nice ftp server. I logged in and transfered the file (in binary mode) there. It was corrupted. Here's an excerpt:
For every subnet which will be served, and for every subnet to which
the dhcp server is connected, there must be one _s_u_b_n_e_t declaration,
which tells dhcpd how to recognize that an address is on that subnet.
A _s_u_b_n_e_t declaration is required for each subnet even if no addresses
will be dynamically allocated on that subnet.
and another:
Notice that at the beginning of the file, there’s a place for global
parameters. These might be things like the organization’s domain
name, the addresses of the name servers (if they are common to the
entire organization), and so on. So, for example:
Still somewhat readable, but I'm still frustrated. I read that if I switch to ascii mode in ftp the problem would be solved. Well, the same thing happened. What do I need to do to view the file correctly outside of a linux box?
Oh, and I'm running a half day old install of RH9.
|
|
|
10-12-2003, 02:09 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
When you mount - the t stands for type so you want:
mount -t msdos /dev/fd0u1440 /mnt/floppy/
It will also be a text file so ftp it in text mode.
|
|
|
10-12-2003, 02:17 PM
|
#3
|
Member
Registered: Aug 2003
Location: CA, USA
Distribution: (Almost) LFS 6.1.1
Posts: 91
Original Poster
Rep:
|
ok, I got the floppy mounted, copied the dhcpd.conf.man (which it renamed to DHCPD.CON) to the floppy, opened it up in windows and got the same jumbled text. I've gotten nowhere, but thanks for your quick response!
|
|
|
10-12-2003, 02:49 PM
|
#4
|
LQ Addict
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661
Rep:
|
the problem with jumbled text is not an issue between linux and windows. The output of man is not a plain text. Just try open it with a normal text editor under linux (e.g. kedit) and you'll see.
There are online, easier to read html versions of man pages which you can read from any os that has a browser. For example at linuxquestions.org:
http://man.linuxquestions.org/
|
|
|
10-12-2003, 02:52 PM
|
#5
|
Member
Registered: Aug 2003
Location: CA, USA
Distribution: (Almost) LFS 6.1.1
Posts: 91
Original Poster
Rep:
|
wow. thank you! that'll work out great
Last edited by peok; 10-12-2003 at 09:03 PM.
|
|
|
All times are GMT -5. The time now is 09:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|