9fans archive / 1998 / 12 / 19 / prev next From: ed@was... ed@was... Subject: [9fans] Printing: Plan 9 to Unix Date: Tue, 15 Dec 1998 22:33:33 PST Not elegant, but I have been using these for years. Have Unix accounts with the same login as the plan 9 name and set the Unix .rhosts file to allow access from the plan9 systems. Then: #!/bin/rc cat $1 | rx Unix_system 'cat | /usr/local/bin/enscript -G -Jplan9 -Pstaff' will enscript a file to a unix printer. A simple: cat file | rx Unix-system 'lpr -Pprinter' works. Carrying troff from plan 9 to Unix requires some adjustment since I find the page offset defaults different. I usually print through a BSD system because I am more familiar with the print options. troff -m[es] file | aux/tr2post | rx unix_system 'lpr -Pprinter' Ed Wishart