Re: Putty executing command supplied by remote server

From: Bernd Felsche (bernie_at_innovative.iinet.net.au)
Date: 10/22/04


Date: Fri, 22 Oct 2004 08:09:37 +0800

Michael Surette <msurette@laframboise.net> writes:

>I have an accounting package which is basically a database program
>running on a Linux server. Users telnet into it using a terminal
>program (netterm) and perform their accounting tasks. This
>thankfully all happens on a trusted network. One feature of this
>package is a report writer which will let users print reports to
>their Windows printers. This feature requires SMB connectivity.

>Recently I've had to set up a remote user to access this package
>and used putty to forward ports 23 and 139 (as outlined on this
>newsgroup), and everything works well.

>Since I am using Putty for the port forwarding, I would like to use
>it as the terminal program as well. Using vt100 emulation I tried
>it and all works well except for the report writer. When it is
>invoked, the server sends an escape sequence back to the terminal
>followed by a UNC path for an executable on the Windows share
>followed by a string indicating the virtual terminal id.

I'm really worried about that bit!

>Presumably Netterm executes this program in a shell that it spawns.

>My question, can this be done with Putty?

You don't need to do it with Putty. Change the printer definitions
on the server to access a printer on the server and define those
printers as being smb printers under Linux. Make sure that the
printer is actually shared out from the PC, and that you have
permissions to print to it.

As long as you're not too worried about people snooping printouts,
PuTTY (sshX) is over-kill.

-- 
/"\ Bernd Felsche - Innovative Reckoning, Perth, Western Australia
\ /  ASCII ribbon campaign | I'm a .signature virus!
 X   against HTML mail     | Copy me into your ~/.signature
/ \  and postings          | to help me spread!


Relevant Pages

  • Re: 2nd Branch Server and Laptop configuration suggestion
    ... please share all printers and folders the laptop user ... This newsgroup only focuses on SBS technical issues. ... now, that way, each branch is independent of any possible Server down at ...
    (microsoft.public.windows.server.sbs)
  • Re: CUPS Server Error
    ... Server Identity ... > # Classification: the classification level of the server. ... the default language if not specified by the browser. ... determines whether the scheduler will allow new printers ...
    (Debian-User)
  • Re: printing on home network [SOLVED}] Whoops
    ... Listen 192,168.1.100 <-- the address of my print server ... Deny From All ... as I said before the clients could not have a line in the ... whether or not to use "short" names for remote printers ...
    (Fedora)
  • RE: client printers not getting connected - not a driver problem
    ... I just ran the cleanspl program on the server, so it had no printer drivers ... time, I opened the Printers and Faxes applet on the server, opened Server ... not even the ones for which it loaded a driver. ... connecting client printers properly. ...
    (microsoft.public.windows.terminal_services)
  • Re: Terminal server remote printing
    ... Doug provides an incredible resource and there is a newsletter that every Citrix admin should subscribe to. ... I do see where the RDP client printers were mapped and then disconnected ... MCSE, CCEA, Microsoft MVP - Terminal Server ... If I use the same client going to the same Citrix ...
    (microsoft.public.windows.terminal_services)