From owner-freebsd-questions Sat Mar 4 8: 6:21 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc737825-a.etntwn1.nj.home.com (cc737825-a.etntwn1.nj.home.com [24.3.202.115]) by hub.freebsd.org (Postfix) with ESMTP id 1A86E37B79B for ; Sat, 4 Mar 2000 08:06:18 -0800 (PST) (envelope-from drmoreau@cc737825-a.etntwn1.nj.home.com) Received: (from drmoreau@localhost) by cc737825-a.etntwn1.nj.home.com (8.9.3/8.9.3) id LAA00651; Sat, 4 Mar 2000 11:06:10 -0500 Date: Sat, 4 Mar 2000 11:06:10 -0500 From: Chris To: Hugh Blandford Cc: questions@FreeBSD.ORG Subject: Re: Printing from Unix to Windows Message-ID: <20000304110610.A605@cc737825-a.etntwn1.nj.home.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0us In-Reply-To: ; from hugh@mail.island.net.au on Sun, Mar 05, 2000 at 02:30:15AM +1100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Just a point of curiosity, but if the remote is the Win machine, why not copy or transfer the file that needs printing using scp or sftp which are part of ssh2? Then print the file locally on the Win machine. This of course assumes that the unix application outputs to a printable format file that the Win machine can use. Another solution is to get the ip of the Win machine from the env via a script. When you connect with ssh2 the env is set with the remote's ip information. You could have a script snag the remote's ip, and create a printcap entry with the current remote's ip as a remote printer entry. There are a number of ways to do this, the key is getting the ip of the remote, my crack at it says that through the env that ssh2 would setup is the easy way out since you would be using ssh to login anyway. On Sun, Mar 05, 2000 at 02:30:15AM +1100, Hugh Blandford wrote: > I have a situation where I have a roving user who would like to be able to > login to their server and pring invoices etc via the net. The unix server > would have a fixed IP address but the client wouldn't. We could run SSH > on the Windows machine for a secure login but what about the printing? I > need to redirect the output from a unix machine to a Windows printer via > the net. > > There is PPTP but there are no Windows machines on site. I have > heard about PopTop but I didn't think the encryption was working on FBSD. > > If anyone can come up with some suggestions I would appreciate it. > > Thanks, > > Hugh Blandford > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message