C Board  

Go Back   C Board > Community Boards > Tech Board

Reply
 
LinkBack Thread Tools Display Modes
Old 09-27-2006, 05:06 PM   #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
mall0y is offline   Reply With Quote
Old 09-27-2006, 05:20 PM   #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.
__________________
Enlighten Yourself

I'm back!
Wraithan is offline   Reply With Quote
Old 09-27-2006, 05:29 PM   #3
Cat without Hat
 
CornedBee's Avatar
 
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   Reply With Quote
Old 09-27-2006, 06:20 PM   #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...
mall0y is offline   Reply With Quote
Old 09-28-2006, 04:09 AM   #5
Cat without Hat
 
CornedBee's Avatar
 
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   Reply With Quote
Old 09-28-2006, 05:47 AM   #6
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,710
Moved to tech
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.

Salem is offline   Reply With Quote
Old 09-28-2006, 10:25 AM   #7
Registered User
 
Join Date: Sep 2006
Posts: 3
Anybody have a clue??
mall0y is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 12:53 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22