LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 10-12-2003, 02:06 PM   #1
peok
Member
 
Registered: Aug 2003
Location: CA, USA
Distribution: (Almost) LFS 6.1.1
Posts: 91

Rep: Reputation: 15
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.
 
Old 10-12-2003, 02:09 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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.
 
Old 10-12-2003, 02:17 PM   #3
peok
Member
 
Registered: Aug 2003
Location: CA, USA
Distribution: (Almost) LFS 6.1.1
Posts: 91

Original Poster
Rep: Reputation: 15
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!
 
Old 10-12-2003, 02:49 PM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
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/
 
Old 10-12-2003, 02:52 PM   #5
peok
Member
 
Registered: Aug 2003
Location: CA, USA
Distribution: (Almost) LFS 6.1.1
Posts: 91

Original Poster
Rep: Reputation: 15
wow. thank you! that'll work out great

Last edited by peok; 10-12-2003 at 09:03 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
converting Windows text to Linux text joshknape Linux - Software 3 09-11-2005 12:52 PM
Huge text in man pages and help gekko9 Linux - Newbie 3 05-01-2004 12:01 PM
man pages in text file serji Linux - Newbie 6 10-20-2003 03:59 PM
man pages in text file serji Linux - Software 6 10-20-2003 03:35 PM
MAN Pages..can I export to a text file? phil1076 Linux - General 4 10-29-2001 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration