![]() |
| | #1 |
| Registered User Join Date: Sep 2006
Posts: 3
| Printing in PuTTY 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 |
| mall0y is offline | |
| | #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. |
| Wraithan is offline | |
| | #3 |
| Cat without Hat Join Date: Apr 2003
Posts: 8,492
| 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 |
| CornedBee is offline | |
| | #4 | |
| Registered User Join Date: Sep 2006
Posts: 3
| Quote:
| |
| mall0y is offline | |
| | #5 |
| Cat without Hat Join Date: Apr 2003
Posts: 8,492
| 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 |
| CornedBee is offline | |
| | #6 |
| and the hat of Jobseeking Join Date: Aug 2001 Location: The edge of the known universe
Posts: 21,710
| Moved to tech |
| Salem is offline | |
| | #7 |
| Registered User Join Date: Sep 2006
Posts: 3
| Anybody have a clue?? |
| mall0y is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C# Printing Problem | silverlight001 | C# Programming | 0 | 03-23-2009 01:13 AM |
| Printing Lines to .txt File | Programmer3922 | C Programming | 2 | 08-02-2008 12:45 PM |
| generic printing preferences dialog box | stanlvw | Windows Programming | 8 | 06-27-2008 02:20 AM |
| printing data to a file | coralreef | C Programming | 3 | 11-02-2006 08:10 PM |
| need help relating printing? | omarlodhi | Linux Programming | 0 | 03-03-2006 04:46 AM |