Thread: Printing in PuTTY

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    3

    Printing in PuTTY

    Hey guys,
    I'm fairly new to C++ and programming in general and I have few questions regarding PuTTY. I am currently in school majoring in computer scienece and in my C++ class our assignments consist of writing a program using PuTTY, printing it out, and handing it in. After I finish the program I start a script file, display the code using the " cat <filename> " command, compile the code, and then run the program. When I end the script file and proceed to print I find that the only printer that I can print to is the printer in the CIS computer lab about 1/2 mile away. What I would like to do is print this using my computer in my dorm room. I configured PuTTY to enable ANSI printing and to send the output to my printer. When I go to use the command " ansiprint -n -f <filename> " it says "Printing File: <filename>" but nothing prints.

    My instructor told me that other people have run into this problem when trying to print to their own printers and that nobody knows for sure what causes it. She suggested it could possibly have something to do with printing being disabled in DOS, but doesn't know for sure. Like I said, I am fairly new to all of this and I was wondering if anyone knows of a soultion to this problem. I don't mind taking the 1/2 mile hike to the CIS Lab right now, but when it gets colder I'd much rather print my assignments from my dorm. Any help is appreciated.


    Thanks,
    Dave

  2. #2
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    This has nothing to do with C++ programming. And I would advise you to seek out a PuTTY mailing list or forum.

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Use the pscp program (available in the same place as PuTTY) to copy all the files of your program to your computer and print them from a normal editor.

    The idea of writing the program on the remote computer through SSH is absurd in the first place. It would have been better to write it locally, then copy it over and compile it on the target. With Cygwin, you could even compile it locally and only copy it for the last bugfixing step.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    3
    Quote Originally Posted by Wraithan
    This has nothing to do with C++ programming. And I would advise you to seek out a PuTTY mailing list or forum.
    Do you know of any forums by chance? i searched but couldnt come up with anything specifically for PuTTY...

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    You could have posted into Technical or General Discussion here.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Moved to tech
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    Sep 2006
    Posts
    3
    Anybody have a clue??

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C# Printing Problem
    By silverlight001 in forum C# Programming
    Replies: 0
    Last Post: 03-23-2009, 01:13 AM
  2. Printing Lines to .txt File
    By Programmer3922 in forum C Programming
    Replies: 2
    Last Post: 08-02-2008, 12:45 PM
  3. generic printing preferences dialog box
    By stanlvw in forum Windows Programming
    Replies: 8
    Last Post: 06-27-2008, 02:20 AM
  4. printing data to a file
    By coralreef in forum C Programming
    Replies: 3
    Last Post: 11-02-2006, 08:10 PM
  5. need help relating printing?
    By omarlodhi in forum Linux Programming
    Replies: 0
    Last Post: 03-03-2006, 04:46 AM