Re: [Emc-users] nother not so silly Q

2021-03-08 Thread Jon Elson

On 03/07/2021 11:08 PM, Gene Heskett wrote:

Greetings all;

I guess I'm one of the guys that grew up reading the printed word, and to
this day I grasp a howto 10 times better by reading it on paper.

So, how is the best way to get a paper copy of a man page, since man
doesn't seem to have the ability to redirect its screen output to a
printer?



man command_name > command.txt

Where "command_name" is the command you are interested in.
This takes the output from man and redirects it to the file 
command.txt


Jon


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] nother not so silly Q

2021-03-08 Thread andy pugh
On Mon, 8 Mar 2021 at 11:15, Gene Heskett  wrote:

> Its the man page for linuxcnc's pid module that I want a hard copy of.

All the LinuxCNC manpages are available as PDF, probably directly from
the CNC menu on your PC.
Or can be downloaded from
http://linuxcnc.org/docs/2.8/pdf/LinuxCNC_Manual_Pages.pdf

pid is on page 421.


--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] nother not so silly Q

2021-03-08 Thread Gene Heskett
On Monday 08 March 2021 01:07:07 R C wrote:

> On 3/7/21 10:43 PM, Chris Albertson wrote:
> > If you intend to print man pages use the "-t" option and you will
> > get Postscript output that is easier to read than dumb-ASCII.
> >
> > Something like
> >
> > man -t chmod > chmod_manpage.ps
> >
This worked to generate the .ps file, and evince loaded it and printed a 
beautiful copy.  Exactly what I wanted.

Thanks everybody, problem is solved.

> > Will generate a Postscript file for the "chmod" command that is
> > formatted for letter-size pages with professional-like typesetting. 
> >  30 years ago I
>
> you mean like ... bold ?
>
> > once had a notebook of these printouts it worked the same way then
> > as now. UNIX was old, even then.

Yeah, we had an AT 3B2 back in the late 80's & 90's for a message box 
from CBS in NYC. AT never did learn to buy quality fans, their cheap 
ones froze up and started a fire 3 damned times. I was glad it was on a 
steel table. That older unix was not at all friendly either. It got 
replaced by a pc running eudora when CBS couldn't buy any more 3B2's. I 
do not remember that P.O.S. fondly.  Both needed a dedicated phone line, 
which was a high monthly cost item back then.  Then someone discovered 
that closed captions was just one of many slow data channels available 
in the vits package.

That ushered in a new headache, and a new hatred for canuk customs 
because the north of the border outfit that made the decoder insisted no 
manuals so it had to be sent back to be repaired. The customs shack at 
the border had no "in out of the weather" storage, so anything that 
didn't have all the t's crossed on the paperwork, sat out in the weather 
till they got the proper paperwork. I got it back once with a UPS 
hangtag on the rack handle, the carton had dissolved in the rain s\as it 
had sent about 3 weeks inside their chain link fencing for most of 
April. I let it dry for over a week before I gave it line power. 
Amazingly, it still worked. CBS and I had some rather frank, nsfw 
discussions over that. Cost us about 20k$ because we were on the wrong 
sat channels and were airing commercials intended for other markets that 
we didn't get paid for. I rewrote a terminal proggy to make a vt-220 out 
of it for my office coco3 computer that allowed me to edit the satellite 
controllers schedule, and had them send me a message with the days 
switching schedule every day. By then we had our own email server, 
running linux of course, at the tv station. I retired before the digital 
switch. Now I'm just an old fart trying real hard to adjust. :-)

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] nother not so silly Q

2021-03-08 Thread Gene Heskett
On Monday 08 March 2021 00:40:13 Nathan Hartman wrote:

> On Mon, Mar 8, 2021 at 12:11 AM Gene Heskett  
wrote:
> > Greetings all;
> >
> > I guess I'm one of the guys that grew up reading the printed word,
> > and to this day I grasp a howto 10 times better by reading it on
> > paper.
> >
> > So, how is the best way to get a paper copy of a man page, since man
> > doesn't seem to have the ability to redirect its screen output to a
>
> I've never done it myself but the following pages offer a few
> different ways, including piping them through some programs on the way
> to the printer or converting them to text, html, postscript, and pdf,
> from which formats they can be printed as well:
>
> https://www.cyberciti.biz/tips/how-do-i-print-out-a-linux-man-or-info-
>page.html
>
> https://www.informit.com/articles/article.aspx?p=597697=6
>
> https://www.peachpit.com/articles/article.aspx?p=430844=2
>
> That last one mentioned html which reminded me that many Linux man
> pages are online in HTML format and it might just be easier to
> navigate over to one of the websites that has them and print them from
> your web browser. Here are a few:
>
> https://www.kernel.org/doc/man-pages/
>
> https://www.man7.org/linux/man-pages/
>
> https://linux.die.net/man/

Its the man page for linuxcnc's pid module that I want a hard copy of.
I'll have to look and see if they have it. It has more pins of i/o than 
most pid diagrams I've seen on the net.

Humm, ISTR my rpi4 building master is making html docs too. It is, and it 
ain't.  Its building them, but not packaging them in a deb. I looked at 
man 9 pid9.html, looks like exactly what I need.

Thanks for the idea seed, Nathan.

> There are also the DistroWatch simplified man pages:
>
> https://distrowatch.com/dwres-mobile.php?resource=man-pages
>
> Hope that helps,
> Nathan
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] nother not so silly Q

2021-03-08 Thread Gene Heskett
On Monday 08 March 2021 00:18:01 R C wrote:

> well you could pipe it  through lpr.
>
>
> but also, probably easier,  you can pipe it to a file..  and then
> print that file.
>
>
> for example for ls:
>
>
> $ man ls > ls-man.txt
>
>
> check ls-man.txt,  it should be an ascii/txt file.   and you can print
> that.

I'll give it a shot, thanks R C.
>
> Ron
>
> On 3/7/21 10:08 PM, Gene Heskett wrote:
> > Greetings all;
> >
> > I guess I'm one of the guys that grew up reading the printed word,
> > and to this day I grasp a howto 10 times better by reading it on
> > paper.
> >
> > So, how is the best way to get a paper copy of a man page, since man
> > doesn't seem to have the ability to redirect its screen output to a
> > printer?
> >
> > Thanks.
> >
> > Cheers, Gene Heskett
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] nother not so silly Q

2021-03-07 Thread Chris Albertson
On Sun, Mar 7, 2021 at 10:09 PM R C  wrote:

> > Will generate a Postscript file for the "chmod" command that is formatted
> > for letter-size pages with professional-like typesetting.
>
> you mean like ... bold ?


Here is a sample.  It is a man page for the "cp" command I just made using
"man -t cp" and attached.  My Acrobat-clone was happy to save it as a PDF.
-- 

Chris Albertson
Redondo Beach, California


cp_manpage.pdf
Description: Adobe PDF document
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] nother not so silly Q

2021-03-07 Thread R C



On 3/7/21 10:43 PM, Chris Albertson wrote:

If you intend to print man pages use the "-t" option and you will get
Postscript output that is easier to read than dumb-ASCII.

Something like

man -t chmod > chmod_manpage.ps

Will generate a Postscript file for the "chmod" command that is formatted
for letter-size pages with professional-like typesetting.   30 years ago I


you mean like ... bold ?



once had a notebook of these printouts it worked the same way then as now.
UNIX was old, even then.

On Sun, Mar 7, 2021 at 9:20 PM R C  wrote:


well you could pipe it  through lpr.


but also, probably easier,  you can pipe it to a file..  and then print
that file.


for example for ls:


$ man ls > ls-man.txt


check ls-man.txt,  it should be an ascii/txt file.   and you can print
that.


Ron

On 3/7/21 10:08 PM, Gene Heskett wrote:

Greetings all;

I guess I'm one of the guys that grew up reading the printed word, and to
this day I grasp a howto 10 times better by reading it on paper.

So, how is the best way to get a paper copy of a man page, since man
doesn't seem to have the ability to redirect its screen output to a
printer?

Thanks.

Cheers, Gene Heskett


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users






___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] nother not so silly Q

2021-03-07 Thread Chris Albertson
If you intend to print man pages use the "-t" option and you will get
Postscript output that is easier to read than dumb-ASCII.

Something like

man -t chmod > chmod_manpage.ps

Will generate a Postscript file for the "chmod" command that is formatted
for letter-size pages with professional-like typesetting.   30 years ago I
once had a notebook of these printouts it worked the same way then as now.
UNIX was old, even then.

On Sun, Mar 7, 2021 at 9:20 PM R C  wrote:

> well you could pipe it  through lpr.
>
>
> but also, probably easier,  you can pipe it to a file..  and then print
> that file.
>
>
> for example for ls:
>
>
> $ man ls > ls-man.txt
>
>
> check ls-man.txt,  it should be an ascii/txt file.   and you can print
> that.
>
>
> Ron
>
> On 3/7/21 10:08 PM, Gene Heskett wrote:
> > Greetings all;
> >
> > I guess I'm one of the guys that grew up reading the printed word, and to
> > this day I grasp a howto 10 times better by reading it on paper.
> >
> > So, how is the best way to get a paper copy of a man page, since man
> > doesn't seem to have the ability to redirect its screen output to a
> > printer?
> >
> > Thanks.
> >
> > Cheers, Gene Heskett
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>


-- 

Chris Albertson
Redondo Beach, California

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] nother not so silly Q

2021-03-07 Thread Nathan Hartman
On Mon, Mar 8, 2021 at 12:11 AM Gene Heskett  wrote:

> Greetings all;
>
> I guess I'm one of the guys that grew up reading the printed word, and to
> this day I grasp a howto 10 times better by reading it on paper.
>
> So, how is the best way to get a paper copy of a man page, since man
> doesn't seem to have the ability to redirect its screen output to a
>

I've never done it myself but the following pages offer a few different
ways, including piping them through some programs on the way to the printer
or converting them to text, html, postscript, and pdf, from which formats
they can be printed as well:

https://www.cyberciti.biz/tips/how-do-i-print-out-a-linux-man-or-info-page.html

https://www.informit.com/articles/article.aspx?p=597697=6

https://www.peachpit.com/articles/article.aspx?p=430844=2

That last one mentioned html which reminded me that many Linux man pages
are online in HTML format and it might just be easier to navigate over to
one of the websites that has them and print them from your web browser.
Here are a few:

https://www.kernel.org/doc/man-pages/

https://www.man7.org/linux/man-pages/

https://linux.die.net/man/

There are also the DistroWatch simplified man pages:

https://distrowatch.com/dwres-mobile.php?resource=man-pages

Hope that helps,
Nathan

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] nother not so silly Q

2021-03-07 Thread R C

well you could pipe it  through lpr.


but also, probably easier,  you can pipe it to a file..  and then print 
that file.



for example for ls:


$ man ls > ls-man.txt


check ls-man.txt,  it should be an ascii/txt file.   and you can print 
that.



Ron

On 3/7/21 10:08 PM, Gene Heskett wrote:

Greetings all;

I guess I'm one of the guys that grew up reading the printed word, and to
this day I grasp a howto 10 times better by reading it on paper.

So, how is the best way to get a paper copy of a man page, since man
doesn't seem to have the ability to redirect its screen output to a
printer?

Thanks.

Cheers, Gene Heskett



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users